How to run the deb installation package through the command line in Ubuntu

Source: Internet
Author: User
If you want to install new software in Ubuntu, you must have the deb installation package (for example, linuxidc. deb), but cannot log on to the desktop. How can I install it? The answer is: run the dpkg command. Dpkg command commonly used format: sudodpkg-Ilinuxidc.deb # view linuxidc. deb Software Package details, including the software name, version and size (where-I is equivalent to -- info) sudodpkg-clinuxidc.deb # view l

If you want to install new software in Ubuntu, you must have the deb installation package (for example, linuxidc. deb), but cannot log on to the desktop. How can I install it? The answer is: run the dpkg command.

The common format of the dpkg command is as follows:

Sudo dpkg-I linuxidc. deb # view the details of the linuxidc. deb software package, including the software name, version, and size (where-I is equivalent to -- info)

Sudo dpkg-c linuxidc. deb # view the file structure contained in the linuxidc. deb Software Package (where-c is equivalent to -- contents)

Sudo dpkg-I linuxidc. deb # install the linuxidc. deb package (where-I is equivalent to -- install)

Sudo dpkg-l linuxidc # view the information of the linuxidc software package (the software name can be viewed using the dpkg-I command, where-l is equivalent to -- list)

Sudo dpkg-L linuxidc # view all the files installed in the linuxidc package (the software name can be viewed using the dpkg-I command, where-L is equivalent to -- listfiles)

Sudo dpkg-s linuxidc # view the details of the linuxidc package (the software name can be viewed using the dpkg-I command, where-s is equivalent to -- status)

Sudo dpkg-r linuxidc # uninstall the linuxidc package (the software name can be viewed using the dpkg-I command, where-r is equivalent to -- remove)

Note: The dpkg command cannot automatically resolve the dependency. If the deb package to be installed has a dependency package, do not use this command or install the dependency package in the order of dependency.

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.