Thread: Get Installed applications list and applications activity

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    3

    Get Installed applications list and applications activity

    Hi,

    Is there a programmatic way to get the list of all installed applications on Linux.

    Also, how can we get the application activities in Linux OS like running applications name, time of day when they started, duration till the applications were running on system, application version etc.

    Is there a way to do this in C/C++.

    I am building an app that runs like a daemon and fetches the applications status and sends it to the network admin for him to monitor the application usage pattern on the user computers in the network.

    I really appreciate any help, workaround or code snippet.

    Thanks a lot..
    Arun

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Is there a programmatic way to get the list of all installed applications on Linux.
    That would be distribution-specific. Actually, package-manager specific. Do you want it for DEB, RPM, or something else?

    running applications name
    Code:
    ps aux
    time of day when they started
    No idea.

    duration till the applications were running on system
    Huh?

    application version
    Depends on package manager.

  3. #3
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    Maybe do some /proc hacking. I am not an expert, but g00gle something like "/proc filesystem".

  4. #4
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    "get the list of all installed applications on Linux"

    Impossible. Even with what cyberfish said, there is no reason I'd have to use the package manager to install a given tool. Some pretty stellar applications are single source that could be built on the fly. Countless applications are only scripts that run through PHP, Perl, etc.. And you can bet most people wouldn't run as root anyway.

    Soma

  5. #5
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    Why not create a memory dump? Anyway, if you want to list all running _applications_, not _scripts_, that would be possible. All installed ones? Difficult. You could dreate a huge database with every single file any version of any known program installs and its checksum, then scan the whole filesystem and report the results.

  6. #6
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    "You could dreate a huge database with every single file any version of any known program installs and its checksum, then scan the whole filesystem and report the results."

    No. You could not. You couldn't even do that in theory. The sum would change depending on the environment, the platform, the phases of the moon--literally `__TIME__'--etc..

    Give it up; write something useful.

    Soma

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fgets only returns 3 characters
    By Jesdisciple in forum C Programming
    Replies: 88
    Last Post: 09-01-2008, 01:33 PM
  2. A question about windows programming
    By Hussain Hani in forum Windows Programming
    Replies: 16
    Last Post: 05-23-2007, 07:38 AM
  3. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM