Fedora Linux Support Community & Resources Center
  #1  
Old 31st March 2011, 03:51 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 56
windows_7firefox
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.
Reply With Quote
  #2  
Old 31st March 2011, 04:15 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,847
linuxfedorafirefox
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.
Reply With Quote
  #3  
Old 31st March 2011, 04:28 PM
SiliconSlick Offline
Registered User
 
Join Date: Aug 2009
Location: College Station, TX
Posts: 501
linuxfedorafirefox
Re: Save a list of installed software

Code:
 rpm -qa --qf "%{NAME}\n" | sort > rpmlist
SS (who makes such a list for every upgrade)
Reply With Quote
  #4  
Old 31st March 2011, 04:32 PM
leigh123linux
Guest
 
Posts: n/a
linuxredhatfirefox
Re: Save a list of installed software

Quote:
Originally Posted by SiliconSlick View Post
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
Reply With Quote
  #5  
Old 31st March 2011, 04:56 PM
YeOK Offline
Registered User
 
Join Date: Apr 2006
Location: North West UK.
Age: 34
Posts: 527
linuxchrome
Re: Save a list of installed software

Quote:
Originally Posted by DupermanDave View Post
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
__________________
“When one is writing a letter, he should think that the recipient will make it into a hanging scroll.”
― Yamamoto Tsunetomo.
Reply With Quote
  #6  
Old 7th July 2012, 06:22 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 56
linuxfirefox
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.
Reply With Quote
  #7  
Old 7th July 2012, 06:44 PM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,652
linuxfedorafirefox
Re: Save a list of installed software

Quote:
Originally Posted by DupermanDave View Post
Is there a way to save a list of repositories I'm using
Code:
yum repolist
__________________
"I'm not glad he's dead, but I'm glad he's gone."
-- Richard M. Stallman, on the death of Steve Jobs
Reply With Quote
  #8  
Old 7th July 2012, 07:05 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxiceweasel
Re: Save a list of installed software

Code:
man show-installed
I think it comes with yum-utils
Reply With Quote
  #9  
Old 16th September 2012, 08:40 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 56
linuxchrome
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.
Reply With Quote
  #10  
Old 17th September 2012, 02:42 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
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.
Reply With Quote
  #11  
Old 22nd October 2012, 03:45 AM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 56
linuxfirefox
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?
Reply With Quote
  #12  
Old 22nd October 2012, 04:32 AM
flyingfsck Offline
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,863
linuxfirefox
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.
Reply With Quote
Reply

Tags
installed, list, save, software

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
repository list and list of installed applications? dragonbite Using Fedora 10 30th November 2011 11:40 AM
Howto: save "list of installed packages" Martiini Using Fedora 4 13th August 2011 01:59 PM
List of software installed in fedora 12 anika.ella Using Fedora 10 5th February 2011 02:11 PM
Add/Remove Software--No list of installed packages dhruvats Using Fedora 2 13th December 2010 09:05 PM
List installed software charales Using Fedora 5 12th March 2005 08:20 AM


Current GMT-time: 15:52 (Friday, 19-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat