Common debian installation commands

Source: Internet
Author: User
Commonly used debian installation commands (to)-General Linux technology-Linux technology and application information, the following is a detailed description. Dpkg (some underlying package management tools, after using apt (Advanced package management tools), generally does not need to process a single deb file. If necessary, run the dpkg command)

1. dpkg-I gedit-2.12.1.deb: Install gedit

2. dpkg-r gedit: uninstall gedit, but do not delete the configuration file

3. dpkg-P gedit: This will be deleted together with the gedit configuration file. If only-r is used, the configuration file will not be deleted.

4. dpkg-c gedit-2.12.1.deb: If you don't want to install a deb package, but you want to see what files it contains, use this; if you want to view more information:

Dpkg-I gedit-2.12.1.deb

5. dpkg-l gcc *: You can also use wildcards to list software on the machine. This will list all software packages starting with gcc. Among them, 1st I indicates that you want to install them, 2nd I indicates that it has been installed, and 3rd fields are problematic (if any) (the meaning of the three words can be viewed in the above three rows, desired, status, err ), the name, version, and description are followed. Un indicates, Unknown, not-installed

6. dpkg-s gedit: to check whether a package has been installed:

7. dpkg-L gedit: If you want to see what files are installed in a software, add Grep if you only want to view some files:

Dpkg-L gedit grep png
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.