LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to know what module is in Debian server (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-know-what-module-is-in-debian-server-651431/)

ust 06-24-2008 10:27 PM

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

eggixyz 06-24-2008 10:48 PM

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

farslayer 06-24-2008 11:45 PM

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.


All times are GMT -5. The time now is 03:38 AM.