LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2009, 05:04 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
anaconda-ks.cfg


I looked at the anaconda-ks.cfg file from one of my servers, but it shows a lot of packages that were installed when it was loaded that are no longer loaded. Is there a way from the CLI to get a list of what's currently installed on the RHEL server? Kinda like how in Windows you would go to Add/Remove programs and look at the various tabs in there.
 
Old 09-02-2009, 05:08 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Try this:

rpm -qa

Regards,

Fordeck
 
Old 09-02-2009, 05:13 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
I tried that on a test server I loaded with CentOS, and all the stuff flew by on the screen. any way i can see it? and will all this help me in picking what options to use to load another server? i'm trying to use the one working one as a base kinda.
 
Old 09-02-2009, 05:19 PM   #4
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
You could pipe the output to a file like this:

Code:
rpm -qa >> packages.txt
or use:

Code:
rpm -qa | less
to page through the output. If you are looking for a particular package you might try:

Code:
rpm -qa | grep <search_term_here>
Not sure if these were what you were after, so let me know if this helped.

Regards,

Fordeck
 
Old 09-02-2009, 05:24 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
the | less thing seemed to work good, I could see everything going through it group by group.

I guess this is where i plead ignorance. there's a lot of stuff there! is there a way for me to tell which ones are just "part of Linux" as opposed to ones that were checked in the GUI install screen to be installed.

Like for instance, when I look at the anaconda file, i see the following part, but I know we don't use GUI's on the servers so not sure why kde-desktop is listed there. I hope that makes sense, and i appreciate your help!!!


%packages
@ mysql
@ admin-tools
@ editors
@ emacs
@ system-tools
@ text-internet
@ dialup
@ ftp-server
@ compat-arch-support
@ smb-server
@ base-x
@ web-server
@ printing
@ kde-desktop
@ server-cfg
@ graphical-internet
php-odbc
mod_auth_mysql
joe
grub
kernel-smp
php-mysql
e2fsprogs
 
Old 09-02-2009, 05:56 PM   #6
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Here is a link that may be helpful:

http://www.linux-mag.com/id/6747/

look for the section 'Listing 7: The command section of our kickstart file' this talks about the syntax for specifying packages. Also here is another link:

http://www.redhat.com/docs/manuals/e...tall-info.html

I know this last link is from RHEL4 but conceptually it is the same.

Regards,

Fordeck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
anaconda-ks.cfg problem on RHEL5 matrol Red Hat 0 12-09-2007 04:02 AM
Accidently deleted anaconda-ks.cfg deepanvenkatesh Linux From Scratch 4 01-23-2007 08:07 AM
how to get back anaconda-ks.cfg jam_newbiew Linux - General 2 02-02-2005 04:11 AM
Cron and anaconda-ks.cfg jjrowan Linux - Software 3 11-17-2004 04:08 PM
/bin/sh: anaconda-ks.cfg: command not found Buttercups Linux - General 1 08-07-2003 09:47 PM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration