LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS/RedHat: How to list all packages I installed via yum? (https://www.linuxquestions.org/questions/linux-newbie-8/centos-redhat-how-to-list-all-packages-i-installed-via-yum-4175479476/)

sysbox 10-03-2013 11:08 AM

CentOS/RedHat: How to list all packages I installed via yum?
 
My PC runs CentOS 6.4 64-bit. Is there an easy way to list all the packages I ever installed via YUM (the package manager for RedHat-like systems)?

colucix 10-03-2013 11:11 AM

To retrieve a full list of the installed packages
Code:

rpm -qa
To review the installation history via yum, take a look at
Code:

/var/log/yum.log

jpollard 10-03-2013 11:23 AM

you can also use "yum list installed"

sysbox 10-03-2013 11:29 AM

I should clarify, or re-clarify. What I want is the list of packages that I manually installed via yum, not the list of all installed packages.

Why? I might have to re-install CentOS on my machine since the memory cache is growing too large and that prevents my apps from running. Before I do so, I'd like to know what packages I installed via yum so I can more easily duplicate the previous state.

colucix 10-03-2013 12:12 PM

Quote:

Originally Posted by sysbox (Post 5039385)
I should clarify, or re-clarify. What I want is the list of packages that I manually installed via yum, not the list of all installed packages.

Why? I might have to re-install CentOS on my machine since the memory cache is growing too large and that prevents my apps from running. Before I do so, I'd like to know what packages I installed via yum so I can more easily duplicate the previous state.

Again /var/log/yum.log gives exactly the required information.

Madhu Desai 10-03-2013 12:45 PM

You can try
Code:

yum list installed | grep -v 'anaconda\|updates'

Madhu Desai 10-03-2013 01:48 PM

Another way to find out what packages you have installed is

Find the date when you have installed the OS
Code:

# ls -l /root/install.log
-rw-r--r--. 1 root root 28280 Jun 26 16:33 /root/install.log

Find out what packages were installed while installing OS:
Code:

# cat /root/install.log
List all installed packages by date:
Code:

# rpm -qa --last > new_list
new_list - install.log = Packages that you installed

But still i insist, to use the one i mentioned in previous post.

knudfl 10-03-2013 02:21 PM

Listing packages alphabetically :

$ rpm -qa | sort > installed-rpms.txt


All times are GMT -5. The time now is 06:57 PM.