 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

31st March 2011, 03:51 PM
|
|
Registered User
|
|
Join Date: Mar 2011
Posts: 51

|
|
|
Save a list of installed software
Since Fedora isn't a rolling release distro like I'm used to, I was wondering if there was a way to save a list of installed packages to make the next upgrade easier. I'm eagerly waiting for FC15, but still on FC14, and I would like to know if there's a way to export a file that yum can reference to reinstall what program titles I already have installed.
|

31st March 2011, 04:15 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150

|
|
|
Re: Save a list of installed software
I believe that would be:
yum list installed
The output can then be used for several things. I've used it to extract the name (split the first column by "." and drop the last entry) when I had a problem with a laptop install. Then used that list to rebuild. It took a while, but worked fine.
Last edited by jpollard; 31st March 2011 at 04:17 PM.
|

31st March 2011, 04:28 PM
|
 |
Registered User
|
|
Join Date: Aug 2009
Location: College Station, TX
Posts: 501

|
|
|
Re: Save a list of installed software
Code:
rpm -qa --qf "%{NAME}\n" | sort > rpmlist
SS (who makes such a list for every upgrade)
|

31st March 2011, 04:32 PM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
|
Re: Save a list of installed software
Quote:
Originally Posted by SiliconSlick
Code:
rpm -qa --qf "%{NAME}\n" | sort > rpmlist
SS (who makes such a list for every upgrade)
|
Listing arch is +
Code:
rpm -qa --qf "%{NAME}.%{ARCH}\n" | sort > rpmlist
|

31st March 2011, 04:56 PM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: North West UK.
Age: 32
Posts: 510

|
|
|
Re: Save a list of installed software
Quote:
Originally Posted by DupermanDave
Since Fedora isn't a rolling release distro like I'm used to, I was wondering if there was a way to save a list of installed packages to make the next upgrade easier. I'm eagerly waiting for FC15, but still on FC14, and I would like to know if there's a way to export a file that yum can reference to reinstall what program titles I already have installed.
|
You can also just use the preupgrade tool. Yum will then install all your packages as it updates to Fedora 15.
http://fedoraproject.org/wiki/PreUpgrade
__________________
He who asks a question is a fool for a minute; he who does not remains a fool forever.
|

7th July 2012, 06:22 PM
|
|
Registered User
|
|
Join Date: Mar 2011
Posts: 51

|
|
|
Re: Save a list of installed software
I have a long overdue followup to this question. Is there a way to save a list of repositories I'm using (like for VLC, Dropbox, Handbrake, etc...) so that after I save the list of installed software I can install the software again from those repositories?
Essentially I'd like to eventually write a backup script to save a list of installed/uninstalled programs, save a list of repos, and then if I ever need to upgrade ot reinstall Fedora I can just run the script and it'll restore my list.
|

7th July 2012, 06:44 PM
|
 |
Registered User
|
|
Join Date: Nov 2006
Location: Detroit
Posts: 4,728

|
|
|
Re: Save a list of installed software
Quote:
Originally Posted by DupermanDave
Is there a way to save a list of repositories I'm using
|
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
|

7th July 2012, 07:05 PM
|
|
Registered User
|
|
Join Date: May 2011
Posts: 700

|
|
|
Re: Save a list of installed software
I think it comes with yum-utils
|

16th September 2012, 08:40 PM
|
|
Registered User
|
|
Join Date: Mar 2011
Posts: 51

|
|
|
Re: Save a list of installed software
Quick question before I b0rk my system AGAIN. What command would be used to restore the list? On another thread I saw it was: yum -y install $(cat /home/[user]/Desktop/installed-software.log)
But for some reason that doesn't look right. Maybe it's the lack of sleep.
|

17th September 2012, 02:42 AM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,620

|
|
|
Re: Save a list of installed software
Yep.. That's how you would do it with a txt file created like in post #3 or 4 above.
Just make sure that the path and file name are the same as when you saved the file.
yum -y install $(cat /home/[user]/Desktop/installed-software.log)
That would work, just make sure that [user] is changed to the users name where the file is located.
A simpler form would be yum -y install $(cat rpmlist)
Doing it that way, the file would have to be in your current directory.
Edit:
Now to confuse matters..
Code:
rpm -qa --qf "%{NAME}\n" | sort > rpmlist.txt
now to add a few things to the file so that yum can read it back and process it
sed -i 's/^/install /' rpmlist.txt
sed '$ a\run' rpmlist.txt > rpmlist2.txt
now read it back into yum and run it:
yum shell rpmlist2.txt
Last edited by DBelton; 17th September 2012 at 02:50 AM.
|

22nd October 2012, 03:45 AM
|
|
Registered User
|
|
Join Date: Mar 2011
Posts: 51

|
|
|
Re: Save a list of installed software
I have another question after using the method described above.
How do I remove a list of apps installed by default? For example, I reinstalled F17. When I install F18 (when it's released) I'd like to be able to just uninstall the programs I don't use, like Caligra, Dragon Player, KDE Games, etc...
How do I save a list of programs that are NOT installed? Basically tell yum to look at a text file like the one exported previously and tell yum that if there's a program not listed on there, remove it. Or, if there's a more efficient way, what would it be?
|

22nd October 2012, 04:32 AM
|
|
Registered User
|
|
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,096

|
|
|
Re: Save a list of installed software
Howdy,
You need to read up on Redhat Kickstart. The list installed by Anaconda during the initial installation is in /root/anaconda-ks.cfg. You can use that as a starting point and augment it with the yum list, edit and save the new kickstart file, then do unattended automatic installs of a few thousand machines.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 11:12 (Thursday, 20-06-2013)
|
|
 |
 |
 |
 |
|
|