You are not logged in.

#1 2016-08-30 14:22:48

arshad99
Member
Registered: 2016-08-26
Posts: 9

backuping up a specific package with all dependencies

hi, i want to backup a specific package with all dependency that is installed on my laptop i.e i've installed xfce,mate,cinnamon,kde on my laptop i want to backup mate and xfce with all depds and remove it so that i can install after time.i cant backup all of my pacman's cache as its too large and i want all mate packages to be in a specific folder ?

Offline

#2 2016-08-30 14:46:07

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: backuping up a specific package with all dependencies

Just curious -- why not back up only your config files and a list of what you had installed. Then when you reinstall, just install what you had already installed (use some bash scripting to make this easier), and then move your config files back to the new installation. It should take very little space to store just the config files and a list of all packages installed on the system.


Matt

"It is very difficult to educate the educated."

Offline

#3 2016-08-30 16:12:35

arshad99
Member
Registered: 2016-08-26
Posts: 9

Re: backuping up a specific package with all dependencies

thanks, what is config files and where are they located as am a newbie plz fully instruct me

Offline

#4 2016-08-30 16:19:15

null
Member
Registered: 2009-05-06
Posts: 398

Re: backuping up a specific package with all dependencies

Offline

#5 2016-08-31 04:39:03

arshad99
Member
Registered: 2016-08-26
Posts: 9

Re: backuping up a specific package with all dependencies

ok, seen what are the config. files but what do they do then why should i backup them instead of backupping my DE's package what s the difference

Offline

#6 2016-08-31 08:37:07

null
Member
Registered: 2009-05-06
Posts: 398

Re: backuping up a specific package with all dependencies

You can download the packages again and again from different mirrors worldwide. Backups are not really neccessary for those. To have all those programs working exactly like before it's usually enough to backup their configuration and then later reinstall the program and getting your configuration in place.
Why would you want to backup something that is widely available anyway if you got space problems?

Offline

#7 2016-08-31 11:11:35

arshad99
Member
Registered: 2016-08-26
Posts: 9

Re: backuping up a specific package with all dependencies

@null , thanx but i have a very slow internet connection (120kBps). so i cant wait till i download all necessary times bcz i most of time break my linux system so... installing it again is trouble with all my DE's , black arch packages,and all... is there any way to do so

Offline

#8 2016-08-31 11:17:14

arshad99
Member
Registered: 2016-08-26
Posts: 9

Re: backuping up a specific package with all dependencies

hmm i found that when i type "pacman -Rsn mate(or anything)" it shows all of its depds' and orginal pkg's with its y/n prompt .so i am copying all of the package one by one to my backup folder from the pacman cache. so is there any script or can make a script to do the same work or instruct me to do such a script,,,thnx in adv'

Offline

#9 2016-08-31 11:34:51

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: backuping up a specific package with all dependencies

What you want to do might not work. You will end up saving to your backup packages that are dependencies of other packages you use, and if you keep you system up-to-date those will inevitably get updated. When and if you want to reinstall you will have version mismatches and either the DEs will be broken or you will break everything else in your system.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#10 2016-08-31 11:42:31

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: backuping up a specific package with all dependencies

Okay, step by step instructions:

1. You find a suitable command to output the dependency tree of the target package.
2. You learn how loops and variables work in bash.
3. You loop over the list of packages generated in 1., learn how wildcards and globbing work in bash and either filter out the version numbers (if you don't care) or explicitly add version numbers (if you care).
4. To automate 3. ,use the -i switch for pacman's -S or -Q. This is also the latest step to teach you, what pipes are and how they work.
5. Since you're a beginner and you most likely will do a lot of steps manually inside your loop (which is totally fine, you'll get better) and your loop gets harder and harder to debug, you figure out, how bash functions work.

Et voilà, you reached your goal in five simple steps. I still have no clue whatsoever what exactly you want to do and why, though.

Offline

#11 2016-08-31 14:30:04

arshad99
Member
Registered: 2016-08-26
Posts: 9

Re: backuping up a specific package with all dependencies

as rookie stated, arch is a rolling and most of packages gets updated and it can break my sys. BUT my network connction troubles me. so its a better idea to backup as i experienced,and i wont update system often. thanks @Awebb for giving good explanation. but sorry i have no knowledge about bash, so i think its difficult to do so. therefor can i download packges with depds' in pacman in a specific folder than on its cache

Offline

#12 2016-08-31 15:07:46

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: backuping up a specific package with all dependencies

Do you really not have ~1.5 GB to spare to backup your entire pacman cache?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#13 2016-08-31 15:50:37

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: backuping up a specific package with all dependencies

Not doing regular backups can also get you into trouble.

Edit:
I meant updates, but its also true that regular backups are a good idea.

Last edited by R00KIE (2016-08-31 20:07:25)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#14 2016-08-31 15:53:11

arshad99
Member
Registered: 2016-08-26
Posts: 9

Re: backuping up a specific package with all dependencies

@Eschwartz, i have a specific 1Tb hard drive for back up but i am too lazy to do that i always backup all my pacman's cache but its time crawling am just asking is there any way to do like this? , so that we can arrange all files specifically in folders i.e pacback-folder-folder...... so that we can easily know what we have in backup like i do in my android phones backing up all apk's . so is there any way to backup or download specifically? or doing a script to backup seperately if possible can any one make it for whole sake plzzzz

Offline

#15 2016-08-31 16:14:24

Steef435
Member
Registered: 2013-08-29
Posts: 577
Website

Re: backuping up a specific package with all dependencies

Be careful, you're starting to look a little pale.

I do believe someone on this world has taken on the challenge of backing up files before. Have a look around, maybe browse the wiki. Do come back if you've done your research but can't get out on your own and you have a specific question, I'd love to help you with that.

Offline

#16 2016-08-31 16:38:55

arshad99
Member
Registered: 2016-08-26
Posts: 9

Re: backuping up a specific package with all dependencies

tahnkx @Stef432 ,i do browse all, googling .. cant find solution but on sometime wil find a solution for this. i  want to download the packages in a specific folder rather than in the cache as this is easier to script as "downloading by pacman, then moving to a specific folder" this seems to be easier to script than "getting the pacg' and dpds' of the target pakg',finding it in cache,if present movingit in a spcfic' folder"

Offline

#17 2016-08-31 17:53:38

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: backuping up a specific package with all dependencies

What exactly is the big deal???

Read the "pacman.conf" manpage and set your pacman cache to your backup HDD.
Read the "pacman" manpage to learn how to periodically purge the pacman cache of ancient and outdated packages, or use the `paccache` script (which is included in the "pacman" package) for additional flexibility. `paccache` is the swiss army knife of  management scripts for the pacman cache, and it is appropriately described on the Pacman wiki page, under the intuitive heading "Usage ==> Cleaning the package cache".

...

Nothing, absolutely nothing, of what you are trying to do is different from the basics of pacman usage. As Steef435 said, it is starting to look very much like you are being a help vampire.

Really. Please just read the Wiki already, what do you think Wikis exist for anyway?
People have gone to great lengths to aggregate useful information in an ordered fashion in the Wiki, so it behooves you to respect their work by using it.

Last edited by eschwartz (2016-08-31 17:56:31)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#18 2016-08-31 19:21:19

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: backuping up a specific package with all dependencies

arshad99 if you do not place the files in the pacman cache folder and install with pacman -S how do you intend to avoid the partial upgrade issue?

Offline

#19 2016-09-01 09:49:23

arshad99
Member
Registered: 2016-08-26
Posts: 9

Re: backuping up a specific package with all dependencies

thanks @Eschwartz i am going to give up this idea of creating backups of specific packages as @loqs stated i want to use a specific pacman command always like the install from command. to all packages so thats a trouble.thanks for clarification

Last edited by arshad99 (2016-09-01 10:11:33)

Offline

Board footer

Powered by FluxBB