Ask Your Question
1

about make backup from package

asked 2016-03-28 02:31:06 -0600

tareksaber gravatar image

updated 2016-03-28 10:14:27 -0600

florian gravatar image

how to make backup from all package which i will install on my system ?

edit retag flag offensive close merge delete

Comments

Backups are a thing, and packages are a thing, but I don't understand your question. Can you please elaborate?

randomuser gravatar imagerandomuser ( 2016-03-28 08:37:34 -0600 )edit
1

So you mean, you want to backup all packages that you installed on your system? Or all packages that you manually installed on your system?

rpm -qa gives you a list of all packages.

sudo dnf history userinstalled gives you a list of all user-installed packages. To write that list as a backup to a file (that you can also use for restore the packages later), use: sudo dnf history userinstalled > ~/list-of-userinstalled.txt.

florian gravatar imageflorian ( 2016-03-28 10:13:26 -0600 )edit

If you want to make a backup of you installed packages best options will be to list all your installed packages save that into a file so you can create a script for reinstall the packages

aeperezt gravatar imageaeperezt ( 2016-03-28 10:14:37 -0600 )edit

Example to Explain my question i will install vlc package (dnf install vlc) i want to install vlc on my system and have a backup on my harddesk to reinstall it on another system

tareksaber gravatar imagetareksaber ( 2016-03-29 02:12:03 -0600 )edit

Hi, and welcome to ask.fedoraproject.org . Please take a minute to read the guidelines, linked on the homepage.

For further explanations like this, you better edit your initial question.

As for your question, all rpm packages that dnf fetches, are (temporarily stored) in /var/cache/dnf. So, you can pull the package from there, and back it up somewhere. You can also always just download a new version: dnf download vlc. But it's always better to get/install the most recent version from a online repo.

florian gravatar imageflorian ( 2016-03-29 09:25:45 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-03-30 05:33:46 -0600

genodeftest gravatar image

You may want to enable the keepcache option in /etc/dnf/dnf.conf. See man dnf.conf for details. In this case dnf will keep the cache in /var/cache/dnf forever giving you the ability to install older package versions there.

If you want to install software on multiple systems and don't want to download it multiple times, you probably want to set up your own local mirror with rsync.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-28 02:31:06 -0600

Seen: 649 times

Last updated: Mar 30 '16