Linux usage tips 9--managing your software with dpkg

Source: Internet
Author: User

DPKG (Package Manager for Debian): Packages management tools in the Debian system.

Commands:  -i|--install       ......-r|--remove        ... | -a|--pending
1. View the installed software
$ dpkg- LDesired=Unknown/install/remove/purge/hold|Status= not/inst/conf-files/unpacked/half-conf/half-inst/trig-await/trig-pend|/Err?=(None)/reinst-required(Status,err:uppercase=Bad||/Name Version Architecture Description+++-===============================-====================-====================-============================= =======================================II Account-plugin-aim              3.8. 6-0Ubuntu9. 1AMD64 Messaging Account plugin for Aimii ack-grep                        2.12-1                AllGrep-likeProgram specifically for large source trees
2. Installing the Deb format software

Sometimes we download Deb's software, like VirtualBox, so we can install it like this:

$ sudo dpkg-i virtualbox-4.3_4.3. the-98988~ubuntu~raring_amd64.deb Selecting previously unselected package virtualbox-4.3. (Reading Database... 237712Files and directories currently installed.) Preparing to unpack virtualbox-4.3_4.3. the-98988~ubuntu~raring_amd64.deb...Unpacking virtualbox-4.3(4.3. the-98988~ubuntu~raring)...Setting up virtualbox-4.3(4.3. the-98988~ubuntu~raring)...Adding group ' vboxusers ' (GID 127) ... Done.
3. View Deb's information

-I parameter, view details

$ dpkg-i virtualbox-4.3_4. 3. the-98988~ubuntu~raring_amd64.debNewDebian package,version 2.0. Size64750912 bytes: Control archive=23332 bytes.118 bytes,4 LinesConffiles1371 bytes, - LinesControl58951 bytes,641 LinesMd5sums14579 bytes,365 Lines* Postinst#!/bin/sh    2144 bytes, - Lines* POSTRM#!/bin/sh    3335 bytes,98 Lines* Preinst#!/bin/bash    3100 bytes, - Lines* Prerm#!/bin/sh    4666 bytes,107 LinesTemplates package:virtualbox-4.3Version:4.3. the-98988~ubuntu~raring architecture:amd64 maintainer:oracle Corporation <[email protected]> installed-size:147848

-C, view the file structure in the package

$ dpkg- CVirtualBox-4.3_4. 3. the-98988~ubuntu~raring_amd64.Deb DRWXR-XR- xRoot/root0  --Geneva- -  Geneva: A ./Drwxr-XR- xRoot/root0  --Geneva- -  Geneva: A ./etc/Drwxr-XR- xRoot/root0  --Geneva- -  Geneva: A ./etc/init.D/-RWXR-XR- xRoot/root6796  --Geneva- -  Geneva: A ./etc/init.D/vboxautostart-service-RWXR-XR- xRoot/root12680  --Geneva- -  Geneva: A ./etc/init.D/vboxdrv

Linux usage tips 9--managing your software with dpkg

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.