LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to know what have installed on my centos (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-know-what-have-installed-on-my-centos-4175638759/)

catiewong 09-19-2018 07:06 PM

How to know what have installed on my centos
 
I would like to list what application are installed on my centos 7 system , I know rpm -qa could list the application have installed by yum , rpm , but I know some packages are installed by tarball compile , make etc.

Would advise what is the method to know all package have installed by all different way ?

wpeckham 09-19-2018 07:44 PM

The Standard system tools build and maintain a database of the installed software. As long as you make good use of them you can query them for all current installed packages. If you have VIOLATED that standard, bypassed the standard tools, then those packages will not be recorded and there will be no easy way to detect or list them UNLESS YOU KEEP YOUR OWN INSTALL DATABASE!


If you have not taken care to keep proper records, or use the proper tools, then you will have to manually seek and pray you miss nothing.

As a SYSADM: I kept a continuity document (big book) that documented every major hardware change, every software install and update, and major or important setting or configuration changes. That gets painful quickly if you have more than a dozen or so servers, and just silly when you have hundreds. Better and easier in the long run to maintain automated databases and use the standard tools.

berndbausch 09-19-2018 08:06 PM

Quote:

Originally Posted by catiewong (Post 5905509)
I would like to list what application are installed on my centos 7 system , I know rpm -qa could list the application have installed by yum , rpm , but I know some packages are installed by tarball compile , make etc.

Would advise what is the method to know all package have installed by all different way ?

The only traces that tar, make, gcc etc leave behind are the files that they create, plus potentially people's shell history. Other than that there is no record of what these tools did. Thus, all you can do is guess.

Most RPM packages include executable files. List all files of all RPM packages. Search your filesystem for executables and compare them with that list. This should give you a starting point.


All times are GMT -5. The time now is 06:35 AM.