LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-25-2009, 11:35 AM   #1
arunarora
LQ Newbie
 
Registered: May 2009
Posts: 7

Rep: Reputation: 0
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
 
Old 05-26-2009, 08:33 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
"top" would report most of the information you are looking for about currently running processes, how long they have been running, and who ran them.

As for a list of installed software, that is considerably harder. Different distributions have different methods of package management, so you would need to at least support all the major methods. But beyond that, software could be installed from source, or it could have been a binary extracted into the filesystem rather than through an official package (such as Firefox, Adobe Acrobat, etc, etc).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install packages & check the list of installed programs/languages/applications shojaru Linux - Newbie 2 05-22-2009 02:36 AM
Mozilla Firefox 3.0.4; few applications in 'applications' tab of 'preferences'; SW12. mitchellray Linux - Newbie 1 03-27-2009 08:56 PM
List of installed applications kumarnarain Linux - Software 2 08-14-2006 10:40 AM
command to list installed applications csy2329 Solaris / OpenSolaris 6 05-12-2006 07:55 PM
List running applications 3saul Linux - Software 2 02-15-2006 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration