Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the apt-get/apt command in Ubuntu

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use the apt-get/apt command in Ubuntu. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

Detailed description of the command:

Usage: apt-get [options] command

Apt-get [options] install | remove pkg1 [pkg2...]

Apt-get [options] source pkg1 [pkg2...]

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

The most commonly used command is update (update)

And install (installation).

Command:

Update-get the package list again

Upgrade-updates are made

Install-install the new software package

Remove-remove package

Autoremove-automatically removes all unused software packages

Purge-remove packages and configuration files

Source-download the source file

Build-dep-configure compilation dependencies for source packages

Dist-upgrade-release upgrade, see apt-get (8)

Dselect-upgrade-update as selected by dselect

Clean-clear downloaded archive files

Autoclean-clear old downloaded archive files

Check-check for corrupted dependencies

Options:

-h this help file.

-Q output to log-No progress indication

-qq does not output information, except for errors

-d download only-do not install or extract archive files

-s is not actually installed. Simulate the execution of commands

-y assume that yes is selected for all queries and no prompts are made.

-f attempts to correct the system dependency damage

-m if the archive cannot be located, try to continue

-u also displays a list of update packages

-b compile after getting the source package

-V displays the detailed version number

-clockwise? Read this profile

-oops? Set custom configuration options, such as-o dir::cache=/tmp

Examples of use:

Apt-cache search packagename search package apt-cache show packagename gets information about the package, such as description, size, version, etc. Apt-get install packagename installation package apt-get install packagename-- reinstall reinstallation package apt-get-f install repair installation "- f =-- fix-missing" apt-get remove packagename delete package apt-get remove packagename-- purge delete package Including deletion of configuration files, etc. Apt-get update update source apt-get upgrade update installed package apt-get dist-upgrade upgrade system apt-get dselect-upgrade uses dselect upgrade apt-cache depends packagename to learn about using dependency apt-cache rdepends packagename is to see which packages are dependent on apt-get build-dep packagename installation related compilation environment apt-get source packagename download the package source code apt-get clean cleanup useless package apt-get autoclean cleanup Useless package apt-get check checking for corrupted dependencies on how the apt-get/apt command is used in Ubuntu is shared here I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report