Practical Tips: Install and delete a command set in Ubuntu

Source: Internet
Author: User
I installed Ubuntu for the first time. I used to play redlinux and red-flag Linux before. I felt that some operations were troublesome, but I was not very familiar with it. I installed Ubuntu this time, I think Ubuntu is indeed very successful. At least, there are a lot of help information on the Internet, so I can easily understand the installation of Ubuntu, and there is an apt command under Ubuntu, you can run a command to install and delete the installed program without downloading, decompressing, and making the program on the website.

I installed Ubuntu for the first time. I used to play redlinux and red-flag Linux before. I felt that some operations were troublesome, but I was not very familiar with it. I installed Ubuntu this time, I think Ubuntu is indeed very successful. At least, there are a lot of help information on the Internet, so I can easily understand the installation of Ubuntu, and there is an apt command under Ubuntu, you can run a command to install and delete the installed program without downloading, decompressing, and making the program on your website. Of course, you need to decompress and install the program on your own, the apt installation in Ubuntu provides easy and convenient installation. It seems that Ubuntu will be very popular.

The following is an apt command reference, which is also used as a tag.

If you do not know the specific package name, run sudo apt-cache search packagename first. This command is commonly used and must be remembered

Apt-cache show packagename obtains the package information, version, size, and so on.
Apt-get install packagename installation package, which is the most common command.
Apt-get install pacekage -- reinstall
Apt-get-f install packagename force Installation

Apt-get remove packagename remove alread package softe
Apt-get remove packagename -- pure remove and all have been installed and removed cleanly.

Apt-get autoremove automatically deletes unwanted packages

Apt-get update
Apt-get upgrade: Update installed packages
Apt-get dist-upgrade has never been used to upgrade the system,

Apt-cache depends pacakgename understands the dependencies used and is rarely used.
Apt-cache rdepends packagename describes specific dependencies.

Apt-get build-dep packagename install the relevant compiling environment. This is sometimes required.

Apt-get source package downloads and installs the source code of the package, which is sometimes required for programming. (How many people are there actually ?)

Apt-get clean
Apt-get autoclean clears the download file archives. Frequently used. After installation, you sometimes need to clear the downloaded package. After all, you don't want to fill the space with unnecessary things.

Apt-get check to check whether any corrupted dependency exists. Rarely used.

The above commands must be run after sudo. the abbreviation of sudo is supper do, and apt indicates advanced pacakge Tool.

You can use man apt to get more detailed explanations.

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.