LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-05-2010, 01:18 PM   #1
lamou23
Member
 
Registered: Jun 2010
Posts: 54

Rep: Reputation: 15
linux commands


Hi,

Ares there any shell commands to display all applications installed in my linux machine,??

thansk
 
Old 08-05-2010, 01:34 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Assuming you're using a Debian based distro, you can use dpkg --list or dpkg --get-selections.
 
Old 08-05-2010, 01:39 PM   #3
lamou23
Member
 
Registered: Jun 2010
Posts: 54

Original Poster
Rep: Reputation: 15
and if i use redhat distribution or solaris!!!
 
Old 08-05-2010, 01:46 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I'm sure redhat has it's own method through the rpm command (try man rpm), not sure about solaris. Other distros will have their own methods using their package manager.

Of course, all of these commands only work on software that was installed through the package manager. Anything just compiled from source probably won't show up.
 
Old 08-05-2010, 01:59 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
rpm -qa | sort > rpm-packages-`date '+%Y-%m-%d'`
.. will save an alphabetic list in /home/<name>/


rpm -qa --last > last-packages
A date / time ordered list : the latest package installed, in line 1.
.....

Last edited by knudfl; 08-05-2010 at 02:01 PM.
 
Old 08-05-2010, 04:14 PM   #6
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
For ubuntu I use:
Code:
/usr/bin/dpkg-query -W -f 'section:${section}\t${package}\t${version}\t-\t${architecture}\t-\t${description}\n'
For rpm distros I use:
Code:
/bin/rpm -qa --queryformat \
              "%{NAME}\t%{VERSION}\t%{RELEASE}\t%{ARCH}\t%{INSTALLTIME:date}\t%{SUMMARY}\n"
For Solaris I use:
Code:
pkginfo -l
For AIX I use:
Code:
lslpp -lc
For HP-UX I use:
Code:
/usr/sbin/swlist -l bundle -l product -l subproduct -l fileset
For SCO:
Code:
/usr/bin/customquery ListDescriptions
For AS400:
Code:
system wrklicinf
... sorry... got carried away...
 
1 members found this post helpful.
Old 08-05-2010, 04:31 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Wow, you're versatile! All I know is Debian tools and CCleaner on Windows systems.
 
Old 08-05-2010, 11:25 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 6, @ cjcox : Thank you.

I'd guess, that item 2, the 'rpm -qa --queryformat'
will be even more usable, when sorted alphabetically :
Code:
rpm -qa --queryformat "%{NAME}\t%{VERSION}\t%{RELEASE}\t%{ARCH}\t%{INSTALLTIME:date}\n" | sort > rpm-queryformat-sort.txt
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - Software 2 07-02-2008 06:26 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - General 2 07-01-2008 06:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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