Ask Your Question

How can I restore all the packages I have installed?

asked 2014-12-23 04:05:32 -0500

skamath gravatar image

updated 2014-12-23 12:10:11 -0500

mether gravatar image


I am a Fedora 20 user. I was trying to install the unofficial AMD Radeon graphic drivers and I have crashed my GUI. I am able to login through tty. I tried to replace GNOME with KDE and which screwed my laptop more. I logged in via Ubuntu and copied the entire root partition (home is in the same partition) into an external hard drive. How can I restore my apps after doing a fresh install of Fedora 20?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-12-23 08:29:02 -0500

lupinix gravatar image

updated 2014-12-23 12:12:48 -0500

You can get a list of all installed packages using rpm -qa > packagelist.txt and feed it to yum on your new installation.

EDIT: rpm -qa --queryformat='%{NAME}\n' > packagelist.txt to get a list without versions

edit flag offensive delete link more


That would show packages with their version and release info, which often won't work if the package has been updated. Maybe update with a "--queryformat" argument for rpm ?

randomuser gravatar imagerandomuser ( 2014-12-23 08:44:01 -0500 )edit

@randomuser, Can you tell me how to do that?

skamath gravatar imageskamath ( 2014-12-25 11:48:16 -0500 )edit

Thank you. This worked :)

skamath gravatar imageskamath ( 2014-12-29 04:09:51 -0500 )edit

answered 2016-02-10 09:40:34 -0500

florian gravatar image

Just in case , with "I installed" (title) you mean the packages that you manually installed on top of the default packages that come with your Desktop Environment:

sudo dnf history userinstalled > userinstalled-packagelist.txt

creates a text file to be included in a backup.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-12-23 04:05:32 -0500

Seen: 946 times

Last updated: Feb 10 '16