LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2008, 11:27 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
How to know what module is in Debian server


I have a debian server , if I want to know if a module ( eg. vsftp ) is installed or not and its version , what can i do ? thx
 
Old 06-24-2008, 11:48 PM   #2
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey There,

You should be able to do:

Quote:
dpkg -l vsftp
with "vsftp" being a simple regular expression, so:

Quote:
dpkg -l vs
would bring that up, too, along with (possibly a few other packages.

You could also not specify a package and then pipe it to a grep:

Quote:
dpkg -l|grep -i vsftp
Check out this page here, for a more thorough look at all the options explained:

http://www.debianadmin.com/debianubu...sing-dpkg.html

Best wishes,

Mike
 
Old 06-25-2008, 12:45 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
apt-cache policy <packagename>


aptitude show <packagename>


aptitude search
<packagename>
Quote:
http://algebraicthunk.net/~dburrows/.../rn01re01.html
Each search result is listed on a separate line. The first character of each line indicates the current state of the package: the most common states are:
p, meaning that no trace of the package exists on the system,
c, meaning that the package was deleted but its configuration files remain on the system,
i, meaning that the package is installed, and
v, meaning that the package is virtual.

The second character indicates the stored action (if any; otherwise a blank space is displayed) to be performed on the package, with the most common actions being
i, meaning that the package will be installed,
d, meaning that the package will be deleted, and
p, meaning that the package and its configuration files will be removed.

If the third character is A, the package was automatically installed.

for a list of every package installed on the system
dpkg --get-selections > selections.txt
will create a file called selections.txt that contains a list of all installed packages.

Last edited by farslayer; 06-25-2008 at 12:52 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
Issue with module assistant on debian mazza Linux - Newbie 1 11-05-2010 08:35 PM
Debian / ipw2200 / module-assistent doesn't like me... Darkside_Dave Linux - Wireless Networking 2 01-13-2006 02:43 AM
module in Debian 3.1a swmok Debian 2 07-29-2005 11:30 PM
ipw2200 debian module sh4d0w13 Debian 1 03-16-2005 08:24 PM
debian kernel module subfolders 2.2 v 2.4 h_lina_k Linux - General 0 03-10-2004 05:40 PM


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