LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-08-2007, 04:52 PM   #1
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
how to check if a packet is installed


Hi, well before I install other packages, i have a basic question:

is there a way to check what packages I have installed currently?

thanks

I'm really newbie
 
Old 05-08-2007, 05:08 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Yes, and pretty simple too!
Code:
dpkg --get-selections > selections.txt
Then open the file selections.txt in your favourite editor. Make sure you exectute the command as root. Open a terminal, and issue the su command. Type in your root password, hit enter. Now you're root. BE CAREFULL!! With these powers you're capable of completely whiping your disk(s) clean w/o any complaint by the system! Now run the above command. The text file is created in the current directory. You need to do one more thing, change the permissions of the file so you can read it as a normal user:
Code:
chmod 755 selections.txt
 
Old 05-08-2007, 06:28 PM   #3
DeanLinkous
Member
 
Registered: Jun 2006
Posts: 111

Rep: Reputation: 15
Desktop>Administration>Synaptic Package Manager
click on INSTALLED
 
Old 05-08-2007, 06:32 PM   #4
lineman60
Member
 
Registered: Oct 2003
Location: New Mexico
Distribution: CentOS, Ubnutu,
Posts: 35

Rep: Reputation: 15
3rd way

insted of SU -
use
Code:
sudo dpkg --get-selections > selections.txt
 
Old 05-08-2007, 06:45 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
you can also use apt to query for one specific package..

apt-cache policy <packagename>
Code:
debian:~$ apt-cache policy firefox   
firefox:
  Installed: 2.0.0.3-2
  Candidate: 2.0.0.3-2
  Version table:
 *** 2.0.0.3-2 0
        500 ftp://ftp.uwsg.indiana.edu sid/main Packages
        100 /var/lib/dpkg/status
Querying for installed packages with dpkg or apt-cache does not require you to be root... so su - and sudo are actually overkill

Last edited by farslayer; 05-08-2007 at 06:47 PM.
 
Old 05-09-2007, 02:20 AM   #6
mastrboy
Member
 
Registered: Aug 2005
Distribution: Debian, OpenBSD, PFsense
Posts: 73

Rep: Reputation: 15
i would do sudo dpkg --get-selections|grep -i "package name"
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I check if PHP is installed? imsam Linux - Newbie 8 02-13-2012 02:51 PM
How to manually remove installed debian packet? EcceVery Debian 7 07-05-2006 10:19 AM
How do I check what wm I have installed. mlsbraves *BSD 12 12-08-2004 10:25 PM
How do I check if Apache is installed? jmg1894 Linux - Newbie 4 07-15-2004 02:23 PM
How to check for installed software... tarballed Linux - General 3 04-02-2003 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:04 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