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
3. Unzip the Deb package into the Extract folder
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
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