Introduction and use of ES1en ES2en and apt command under Ubuntu

  • 2020-06-19 12:23:01
  • OfStack

preface

This article mainly introduces the apt-ES5en /apt command under Ubuntu related content, share for your reference and study, the following words do not say much, let's have a look at the detailed introduction.

Command details:

Usage: ES12en-ES13en [Options] command

apt-get [option] install|remove pkg1 [pkg2...]

apt-get [Option] source pkg1 [pkg2...]

apt-get is a simple command-line interface for downloading and installing software packages.

The most common command is update(update)

And install(installation).

Command:

update - Retrieves the list of packages upgrade - Update install - Install the new package remove - Remove package autoremove - Automatically removes all unused packages purge - Removes packages and configuration files source - Download the source file build-dep - Configure the compile dependencies for the source package dist-upgrade-release upgrade, see ES60en-get (8) dselect-upgrade - Updated according to dselect selection clean - Clear downloaded archive files autoclean - Clear old downloaded archives check - Checks for corrupt dependencies

Options:

-h this help file. -q output to log - no progress indication -ES73en does not output information, except for errors -d download only - do not install or unzip the archive -s is not actually installed. Mock execution command -ES76en assumes yes for all queries and no prompts -f tried to fix system dependency damage -ES78en If the archive cannot be located, try to continue -u also displays a list of updated packages -ES80en gets the source package and compiles it -ES81en displays the detailed version number - c = & # 63; Read this configuration file - o = & # 63; Set custom configuration options such as -ES84en dir::cache=/tmp

Use examples:


apt-cache search packagename  Search package 
apt-cache show packagename  Gets information about the package, such as description, size, version, and so on 
apt-get install packagename  The installation package 
apt-get install packagename - - reinstall  Reinstall package 
apt-get -f install  Repair installation "-f = --fix-missing"
apt-get remove packagename  Delete the package 
apt-get remove packagename - - purge  Delete packages, including deleting configuration files, and so on 
apt-get update  Update the source 
apt-get upgrade  Update installed packages 
apt-get dist-upgrade  Upgrade system 
apt-get dselect-upgrade  use  dselect  upgrade 
apt-cache depends packagename  Understanding usage dependencies 
apt-cache rdepends packagename  Is to see which packages the package is dependent on 
apt-get build-dep packagename  Install the relevant compilation environment 
apt-get source packagename  Download the source code for the package 
apt-get clean  Clear out unwanted packages 
apt-get autoclean  Clear out unwanted packages 
apt-get check  Check for corrupt dependencies 

conclusion


Related articles: