Fedora Linux Support Community & Resources Center
  #1  
Old 29th December 2009, 03:31 PM
Dr.Diesel Offline
Registered User
 
Join Date: Mar 2005
Location: Terre Haute, IN
Posts: 261
linuxsafari
How to make yum install list?

I'd like to turn the output of "yum list installed" into a file list I can use to setup other machines? Something similar to "yum -y install < listofinstalled.txt" or something?

Any simple solutions?

Thanks
__________________
F18
Reply With Quote
  #2  
Old 29th December 2009, 03:40 PM
Dangermouse Offline
Administrator - (On Leave)
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 51
Posts: 3,868
linuxfedorafirefox
You could make a kickstart file of your system
Quote:
su
yum install system-config-kickstart
then
Quote:
system-config-kickstart --generate current.ks
This post here may help you also (post #5)
http://forums.fedoraforum.org/showthread.php?t=236789
Reply With Quote
  #3  
Old 29th December 2009, 03:50 PM
Dr.Diesel Offline
Registered User
 
Join Date: Mar 2005
Location: Terre Haute, IN
Posts: 261
linuxsafari
Thanks!

Code:
[root@george ~]# system-config-kickstart --generate current.ks
Traceback (most recent call last):
  File "/usr/bin/system-config-kickstart", line 66, in <module>
    useCliMode(value)
  File "/usr/bin/system-config-kickstart", line 41, in useCliMode
    import profileSystem
  File "/usr/share/system-config-kickstart/profileSystem.py", line 28, in <module>
    from system_config_keybard import keyboard
ImportError: No module named system_config_keybard
[root@george ~]#
I'm gonna guess that is supposed to be keyboard, i'll try and edit the script and see what happens!

---------- Post added at 09:50 AM CST ---------- Previous post was at 09:45 AM CST ----------

That worked to dump the packages, then I got this attempting to open it with system-config-kickstart:

The following error was found while parsing your kickstart configuration:
The following problem occurred on line 18 of the kickstart file:
A single argument is expected for the timezone command

Any way to manually input the .ks file into yum?

EDIT: Duh, I see you posted that on message 5!
__________________
F18

Last edited by Dr.Diesel; 29th December 2009 at 03:59 PM.
Reply With Quote
  #4  
Old 29th December 2009, 03:50 PM
PavanKY Offline
Registered User
 
Join Date: Nov 2007
Location: Atlanta, Georgia
Age: 32
Posts: 103
linuxfedorafirefox
I think this should work

Code:
$ yum list installed | awk '{print $1}' > installed.txt
But it might involve a small bit of additional work of deleting the first couple of lines (which are not packages).
Ofcourse this would only work if both the machines you are working on have the same architecture and OS (say x86_64 with fedora 12 64bit on one, and x86_64 with fedora 12 32bit on the other will not work).
__________________
"If it is not broken, try harder"
Reply With Quote
  #5  
Old 29th December 2009, 03:59 PM
Dr.Diesel Offline
Registered User
 
Join Date: Mar 2005
Location: Terre Haute, IN
Posts: 261
linuxsafari
Thanks, that will work perfect!
__________________
F18
Reply With Quote
  #6  
Old 29th December 2009, 04:00 PM
Dangermouse Offline
Administrator - (On Leave)
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 51
Posts: 3,868
linuxfedorafirefox
There is a spelling mistake in the code
Quote:
su
gedit /usr/share/system-config-kickstart/profileSystem.py
find (line28) system_config_keybard and correct to system_config_keyboard, its missing the o
Reply With Quote
  #7  
Old 29th December 2009, 04:02 PM
dragonbite Offline
Registered User
 
Join Date: May 2006
Location: Northeast USA
Age: 46
Posts: 1,344
windows_xp_2003opera
This would be a great feature!

After you have set up your current system with the programs you want, being able to store what applications are installed means if you upgrade (e.g. to Fedora 13) with a clean install (maybe your /home is in another partition) you can run this and get all of your applications re-installed for the new version.

This would remove some of the pain of updating to new releases and dealing with a short release cycle. May not be too much better than just upgrading, but may actually work better because it's starting from a fresh system and if you've tried things out (installed) only to later remove them, you don't have to worry about straggling files cluttering up the place (except maybe with configuration folders in your home directory).
__________________
Linux provides freedom, the problem is most users don't know what it is or how to use it.
My Blog | Danbury Area Computer Society Board Member | Linux User# : 477531
p.s. Anybody who sees I am incorrect in technical procedures, etc., please feel free to correct me. I'm just figuring this out as I go along. :D
Reply With Quote
  #8  
Old 29th December 2009, 04:11 PM
jenaniston Offline
Registered User
 
Join Date: Dec 2009
Location: Malibu, California
Posts: 440
linuxfedorafirefox
Yum Extender

try

Code:
# yum  -y  install  yumex
Yum Extender will then be icon in the System Tools drop down menu (in F11 gnome anyway).

Yum Extender will list what is installed including what you've recently just installed . . .
and what is available to install.

A great GUI front end for Yum !
Reply With Quote
  #9  
Old 29th December 2009, 08:00 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 1,348
windows_xp_2003safari
You could install the rpm-cron package, which will generate a nightly list of installed packages at /var/log/rpmpkgs. This can of course be manually run any time as well by executing the cron job.

If you have this, then just copy the file when you are planning an upgrade, fresh install or whatever.
This file is also used by bash-completion for the rpm commands and so is useful for that as well.
Reply With Quote
  #10  
Old 29th December 2009, 09:53 PM
dragonbite Offline
Registered User
 
Join Date: May 2006
Location: Northeast USA
Age: 46
Posts: 1,344
windows_xp_2003opera
Quote:
Originally Posted by vallimar View Post
You could install the rpm-cron package, which will generate a nightly list of installed packages at /var/log/rpmpkgs. This can of course be manually run any time as well by executing the cron job.

If you have this, then just copy the file when you are planning an upgrade, fresh install or whatever.
This file is also used by bash-completion for the rpm commands and so is useful for that as well.
If you can redirect that to a particular /home directory that would be awesome, as using a seperate /home partition is a popular way of making sure it survives the installation without having to backup-and-restore it all.
__________________
Linux provides freedom, the problem is most users don't know what it is or how to use it.
My Blog | Danbury Area Computer Society Board Member | Linux User# : 477531
p.s. Anybody who sees I am incorrect in technical procedures, etc., please feel free to correct me. I'm just figuring this out as I go along. :D
Reply With Quote
  #11  
Old 29th December 2009, 10:47 PM
cenomanien Offline
Registered User
 
Join Date: Apr 2007
Location: Sablé (72), France
Posts: 30
linuxfedorafirefox
Hello,

To get a list of installed RPMs, use the following command :
Code:
rpm -qa --qf "%{NAME}\n" | sort > installed_rpm_list.txt
to add ARCH (i586, i686, x86_64, etc.) to the packet names, do :
Code:
rpm -qa --qf "%{NAME}.%{ARCH}\n" | sort > installed_rpm_list.txt
Therefore, it is easy to install the packets from that list :
Code:
yum install $(cat installed_rpm_list.txt)
Reply With Quote
  #12  
Old 14th April 2010, 01:20 AM
Dr.Diesel Offline
Registered User
 
Join Date: Mar 2005
Location: Terre Haute, IN
Posts: 261
linuxfedorafirefox
Re: How to make yum install list?

All, I've now used this dozens of time with great success! Thanks again to all for the above info.
__________________
F18
Reply With Quote
Reply

Tags
install, list, make, yum

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
How to make a list of txt ogg or other files? Deonis Using Fedora 7 19th October 2009 12:35 PM
error while installing an app using make , make install kettaneh Using Fedora 12 18th July 2008 11:39 AM
make and make install is not working mkmansur Using Fedora 3 19th September 2005 01:50 PM
make and make install command is not working mkmansur Using Fedora 1 3rd September 2005 11:26 AM
Uninstall after make, make install kelcherwong Using Fedora 7 23rd January 2005 08:44 PM


Current GMT-time: 21:10 (Wednesday, 23-08-2017)

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