Extract, package, install, uninstall and Common command parameters for Ubuntu under Deb package

Source: Internet
Author: User
Tags unpack

1. First download the Deb package, for example: put it in the/home/tools/root directory:

2. Enter the terminal under the Tools root directory, enter the following command to create the folder extract, and create the Debian folder under the Extract folder

Mkdir-p Extract/debian

3. Unzip the Deb package into the Extract folder

Dpkg-x./xxx.deb Extract

4. Unzip the control information in the Deb package (the dependency of the package is in the control file on this side)

Dpkg-e./xxx.deb Extract/debian

5. Create a Build folder

mkdir Build

6. Repackage all content extracted into the Extract folder as a Deb package

Dpkg-deb-b Extract build/

7. Install the Deb package

Dpkg-i Xxx.deb (if permission denied, add sudo before dpkg)

8. Uninstalling the Deb Package

Dpkg-r Xxx.deb (-r parameter only removes the package, cannot completely delete its configuration file, if you want to delete it along with the configuration file, you can use the-p parameter)

Common command argument instances

Package Package Package –package    #配置包

Dpkg-i Package.deb #安装包

From: Http://man.linuxde.net/dpkgdpkg-i package.deb #安装包

From: Http://man.linuxde.net/dpkgdpkg-i package.deb #安装包 dpkg-r package #删除包 (including profiles) dpkg-l #列出与该包关联的文件 dpkg-l Package #显示该包的版本 dpkg--unpack package.deb #解开deb包的内容 dpkg-s keyword #搜索所属的包内容 dpkg-l #列出当前已安装的包 dpk G-c package.deb #列出deb包的内容 dpkg--configure Package #配置包

From: Http://man.linuxde.net/dpkgdpkg-i package.deb #安装包 dpkg-r package #删除包 (including profiles) dpkg-l #列出与该包关联的文件 dpkg-l Package #显示该包的版本 dpkg--unpack package.deb #解开deb包的内容 dpkg-s keyword #搜索所属的包内容 dpkg-l #列出当前已安装的包 dpk G-c package.deb #列出deb包的内容 dpkg--configure Package #配置包

From: http://man.linuxde.net/dpkg

Extract, package, install, uninstall and Common command parameters for Ubuntu under Deb package

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.