LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   RPMs and packages (https://www.linuxquestions.org/questions/red-hat-31/rpms-and-packages-4175449717/)

hnasr2001 02-11-2013 04:13 PM

RPMs and packages
 
How can I find out what RPMs belong to which pakages?

For example, legacy-network-server is the package name; what are the rpms related to this package?

knudfl 02-11-2013 05:05 PM

$ yum grouplist
.. will list all groups, including "Legacy Network Server".
I.e. "Legacy Network Server" is not a package, but a group of packages.

$ yum groupinfo "Legacy Network Server"
... will list the packages in the group :
rusers, rwho, xinetd, etc. ( That's for EL5.)

-

hnasr2001 02-12-2013 08:42 AM

Thanks, I tried and it gave me the list of packages such as Default Packages:
rusers
rwho
xinetd
and Optional Packages

But now how correspond these name with rpms located in the client directory?

I am trying to shrink the size of kickstart dvd I have and I want to delete sme of unwanted rpms.

knudfl 02-12-2013 09:02 AM

1) su <enter-password>

2) # yum remove <package-name>
.... where package name is the short name, like 'firefox', 'rusers', etc.


Creating an alphabetic package list, all installed packages :
$ rpm -qa | sort > packages.txt

.. And a list with install dates : $ rpm -qa --last > last-packages.txt

Remark : Be careful when removing packages. Most cannot be removed !
And : Some are very small. Not worth the effort :
rusers: 22kB, rusers-server: 26kB.
http://ftp.scientificlinux.org/linux...ic/59/i386/SL/

** Finding the package size : $ rpm -qi <name> | grep Size

-

hnasr2001 02-12-2013 09:03 AM

I found the answer to my second question, rusers means all the rpms that start with rusers.
Thanks knudfl for your reply.


All times are GMT -5. The time now is 04:28 PM.