LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to find the list of installed packages? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-the-list-of-installed-packages-780064/)

anand.arumug 01-05-2010 01:25 PM

how to find the list of installed packages?
 
I would like to know what packages are currently installed in my linux machine. My machine is running CentOS 5.4. There is no GUI. All I have is command line interface.

Thanks for your time.

cheers...

mlev 01-05-2010 01:28 PM

try

rpm -qa | more

alunduil 01-05-2010 01:29 PM

Does CentOS still use rpm? If so you you can try: rpm -q.

Regards,

Alunduil

knudfl 01-05-2010 01:41 PM

Saving a text file listing .. alphabetic :
rpm -qa | sort > my-packages.txt

Display the latest installed :
rpm -qa --last | less

Install info about <package-name> :
rpm -qa <package-name>
.. And / or ..
rpm -qa | grep <package-name> ( or part of name.)
.....

anand.arumug 01-08-2010 02:43 PM

Thank you all.

kingston 01-12-2010 03:31 AM

try "rpm -qi ncurses" if ur package is ncurses
it will give the whole information about the package including the size

chrism01 01-12-2010 06:00 PM

Here's a good list of cmds, using rpm & yum: http://kbase.redhat.com/faq/docs/DOC-2531


All times are GMT -5. The time now is 09:54 PM.