LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-14-2009, 03:52 AM   #1
CEB
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
List installed programs


When looking for new software to install manually via terminal, it often has requirements, dependencies.

I would like to list and search my computer for what I already have installed, via terminal. How do I do that?
 
Old 09-14-2009, 04:23 AM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Code:
dpkg --get-selections > list
 
Old 09-14-2009, 04:30 AM   #3
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by CEB View Post
When looking for new software to install manually via terminal, it often has requirements, dependencies.

I would like to list and search my computer for what I already have installed, via terminal. How do I do that?
Another poster has shown one way to find out what packages are installed, but in practice this won't be of much benefit. Instead you will be better off simply trying to install packages and see what dependency issues come up.

If you have a high-speed Internet connection, use either yum or apt-get, depending on your distribution:

# yum list | grep (package-name or shorter search phrase)

# yum install (package-name)

Any dependency problems will be solved, not flagged, if you do it this way.
 
Old 09-14-2009, 04:36 AM   #4
CEB
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
That's a good idea but I'm trying practising packageinstalling manually in the terminal so using apt-get would be cheating...
 
Old 09-14-2009, 04:47 AM   #5
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by CEB View Post
That's a good idea but I'm trying practising packageinstalling manually in the terminal so using apt-get would be cheating...
Manual package installation is now in the same category as the dodo bird and the passenger pigeon. By pursuing this objective, you will likely experience "dependency hell" first-hand and will soon be a candidate for post-traumatic stress disorder therapy.

Hay, good luck. Do you by chance own a hair shirt?
 
Old 09-14-2009, 05:25 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 241Reputation: 241Reputation: 241
There's ways, but as mentioned not much benefit. Outside of some educational aspects and maybe some space management. Although space is so cheap these days. 1TB HDD is like $100 now. Depending on your distro, you might find internet options more revealing ( packages.debian.org ). But it's a family tree thing. A gui requires X which requires a window manager which requires ..., which requires ..., and so on and so on and so on.

For debian-ish ways...

dpkg -l
(lists what is currently installed / or partially installed / partially removed)

dpkg -l '*'
(lists all that is available)

apt-cache show <package>
or
apt-cache showpkg <package>
(lists known dependencies and other package details, but still makes certain assumptions in terms of a base system and such not included in that list)

Or just use dselect or one of the many other installers to navigate dependency hell.

deborphan
(to find out what's installed by not used by anything else anymore, working in reverse at this point)
 
Old 09-14-2009, 06:12 AM   #7
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
You can re-install all the apps you have in case you plan to.
Quote:
dpkg --get-selections > list
dpkg --set-selections < list
dselect
backup your cache from /var/cache/apt/archive
 
Old 09-14-2009, 06:39 AM   #8
CEB
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Shadow_7 and ~sHyLoCk~, thanks, now I'm getting a better picture of things!

Last edited by CEB; 09-14-2009 at 06:59 AM.
 
  


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
Find list of programs installed. deostroll Ubuntu 12 01-05-2008 11:19 PM
List installed programs introuble Debian 2 11-18-2006 06:30 AM
List installed Programs philthee Linux - General 8 10-07-2005 04:35 PM
saving list of installed programs DAChristen29 Ubuntu 1 08-28-2005 05:58 PM
How to get newly installed programs in programs list Brosky Linux - Software 5 02-06-2004 04:45 PM


All times are GMT -5. The time now is 11:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration