Find the answer to your Linux question:
Results 1 to 5 of 5
Good day everyone, I have to build a script that lists all packages installed from hand and with the automated installer on Red Hat. I though of using 'rpm -qa' ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! stukov's Avatar
    Join Date
    Feb 2007
    Posts
    44

    List of all application installed


    Good day everyone,

    I have to build a script that lists all packages installed from hand and with the automated installer on Red Hat. I though of using 'rpm -qa' to get a list of installed RPM's. Now, what can I do to detect the most of applications installed by hand? Check listening ports? Running application?

    Thanks in advance for your ideas!

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,874
    The automated installer puts a list of what it installed into root's home after installation. Anything added after that will be the difference between that list and the output of 'rpm -qa'.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    When you say "installed by hand", do you mean software you compiled from source? If so, then there is no automated way of finding out this info on FC, you have to create a log manually of what you install. If you mean rpms you installed yourself, then they just show up in the list shown by "rpm -qa".

  4. #4
    Just Joined! stukov's Avatar
    Join Date
    Feb 2007
    Posts
    44
    daark.child: yes, I mean installed from source.

    I'm going to try something based to the content of bin/, sbin/ and rcX.d directories.

    Thanks for the replies!

  5. #5
    Just Joined! stukov's Avatar
    Join Date
    Feb 2007
    Posts
    44
    I've started a similar discussion on BSDForums.org, and someone there (uunixuser) had a great idea about my problem. Let me quote him:
    Just an idea to start...
    Create a script that for each rpm (from rpm -qa) append the output of rpm -ql to a file and then sort it.
    Create a file appending the output of find for some dirs for example /usr /bin /etc ... ( not /proc /dev /home /tmp ... ) and sort it.
    Do a diff of the two files and examine it. You'll get all the files not installed by rpm. You can then refine it, for example if you are only interested in files that go in the various bin dirs, use grep with rpm -ql...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •