Run the deb installation package from the dpkg command line under ubuntu
- 2020-05-17 07:28:13
- OfStack
preface
If ubuntu is installing new software, you already have an deb installation package (for example, iptux.deb), but you cannot log in to your desktop environment. How do you install it? The answer is: use the dpkg command.
deb is the installation format of Debian Linux, which is very similar to rpm of Red Hat. The basic installation command is:
dpkg -i file.deb
dpkg, short for Debian Package, is a suite management system specially developed for Debian to facilitate the installation, update and removal of software. All Linux distributions from Debian use dpkg, such as Ubuntu, Knoppix, and so on.
The common format of the dpkg command is as follows:
sudo dpkg -I iptux.deb
See the iptux.deb package for details, including the software name, version, size, and so on
-I
Is equivalent to
�info
)
sudo dpkg -c iptux.deb
View the file structure included in the iptux.deb package (where
-c
Is equivalent to
�contents
)
sudo dpkg -i iptux.deb
Install the iptux.deb package (where
-i
Is equivalent to
�install
)
sudo dpkg -I iptux.deb
0
View information about the iptux package (the software name is available through
dpkg -I
Command view, where
-l
Is equivalent to
�list
)
sudo dpkg -L iptux
View all the files for the iptux package installation (the software name is available via
dpkg -I
Command view, where
-L
Is equivalent to
�listfiles
)
sudo dpkg -s iptux
See the iptux package for details (the software name is available at
dpkg -I
Command view, where
-s
Is equivalent to
�status
)
sudo dpkg -r iptux
Uninstall iptux package (software name is available via
dpkg -I
Command view, where
-r
Is equivalent to
�remove
)
Note: the dpkg command cannot resolve dependencies automatically. If the installed deb package has dependencies, avoid using this command or install the dependencies in dependency order.
conclusion
The above is the entire content of this article, I hope the content of this article for everyone to learn or use the ubuntu system can have a definite help, if you have questions you can leave a message to communicate.