Ubuntuapt-get Summary

Source: Internet
Author: User
Ubuntuapt-get Summary 1. install: 1.1 Basic command # apt-getinstallpackagename here you will install what you need in sources. the latest software package in lists. if there are other dependencies, the corresponding dependent software package is automatically installed. Packagename can be multiple software packages. I... ubuntu apt-get Summary 1. install: 1.1 Basic command # apt-get install packagename here you will install what you need in sources. the latest software package in lists. if there are other dependencies, the corresponding dependent software package is automatically installed. Packagename can be multiple software packages. Some useful options:-h This help text. -d Download only-do NOT install or unpack archives-f Attempt to continue if the integrity check fails-s No-act. perform ordering simulation-y Assume Yes to all queries and do not prompt-u Show a list of upgraded packages as well1.2 specified version # apt-get install package = version 1.3 fix or only install the latest version ben: # apt-get -- reinstall install packagename here, if your package is damaged, or you want to install the latest software, run this. 2. uninstall: 2.1 BASIC command # apt-get remove packagename this will uninstall the corresponding software and also uninstall the dependent part. you cannot specify not to uninstall the dependency. However, the software configuration file will remain in the system. 2.2 When the software is fully uninstalled, the configuration file # apt-get -- purge remove packagename will also be deleted. 3. update the 3.1 update system # apt-get-u upgrade. Here, The-u option is added to list the software to be upgraded. it may prompt that some software will not be upgraded because the dependency may be damaged, the better way is to use apt-get dist-upgrade. you can use cd or add the source address to update it. if you want to upgrade from cd, run apt-cdrom to add the software in cd to the/etc/apt/sources source, and then run apt-get dist-upgrade to upgrade. However, apt-get always uses the latest version, if the cd version is not the latest, it will not be used. 3.2 update the system # apt-get-u dist-upgrade will be installed before the software installed such as apt-get-u upgrade, but some cannot be installed, for example: upgrading may cause uninstallation of some packages. uninstalling these packages may cause unavailability of other software, so you will not be able to upgrade them. 3.3 update the software package # apt-get-u install packagename. it is assumed that packagename cannot be upgraded during the previous upgrade, this command will upgrade packagename. if you need to uninstall the write module and uninstall these modules, some software cannot be used, you can simply uninstall the software and then upgrade it, this command will eventually upgrade packagename. 4. search 4.1 for the packagename package: # apt-cache search packagename to output the packagename string containing the packagename. 4.2 search for the detailed information of the software package: # apt-cache show packagename contains a lot of information about the software package. for example, if you have installed the software package, the information will also be displayed. 4.3 find the approximate information of the software package: apt-cache showpkg packagename. This will display the approximate information. 4.4 check the packages that can be upgraded: $ apt-show-versions-u this apt-show-versions tool needs to be installed. 4.5 check the packagename dependent package: # apt-cache depends packagename
 
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.