Unbuntu apt-Get

Source: Internet
Author: User

Package Mechanism Management: different release versions have different package management mechanisms.

"At first, only .tar.gz was in the GNU/linuxlinuxsystem. Users must compile each program they want to use. After the emergence of Debian, it was considered necessary to add a mechanism in the system to manage software packages installed on computers. This system is called dpkg. The named 'package' appears on GNU/Linux for the first time. Soon afterwards, red hats began to build their own package management system 'rp '.

"The creators of GNU/Linux soon fell into a new dilemma. They want to install software packages in a fast, practical, and efficient way. These software packages can automatically process dependencies between each other and maintain their configuration files during the upgrade process. Debian once again acts as a pioneer. She pioneered apt (Advanced Packaging tool ). This tool is usedConectivaTransplanted to the Red Hat system for managing RPM packages. We can also see her figure in other releases ."

  • -- From Debian apt howto

"At the same time, APT is a complete and advanced software package management program. It allows you to find the software package you want, which is simple and accurate, the installation and uninstallation are simple. It also updates all your software to the latest status and can be used to upgrade ubuntu. "

"APT is a software that requires commands, but now there are many graphical software, such as synaptic, kynaptic, and adept. "

Common Ubuntu apt Command Parameters

We will introduce the Ubuntu apt command parameters to help you understand how to use the Ubuntu apt command parameters. Ubuntu is a fully Linux-based operating system that is freely available and provides community and professional support.

Common Ubuntu apt Command Parameters

Apt-cache search package

Apt-Cache show package obtains package information, such as description, size, and version.

Sudo apt-Get install package installation package

Sudo apt-Get install package--reinstall re-installation package

Sudo apt-get-F install fix and install "-F = -- fix-missing"

Sudo apt-Get remove package Delete package

Sudo apt-Get remove package--Purge delete a package, including deleting a configuration file.

Sudo apt-Get Update update source

Sudo apt-Get upgrade updates installed packages

Sudo apt-Get dist-upgrade System

Sudo apt-Get dselect-upgrade using dselect

Apt-Cache depends package for dependency usage

Apt-Cache rdepends package is used to check which packages are dependent on this package.

Sudo apt-Get build-dep package installation-related compilation environment

Apt-Get source package download the source code of the package

Sudo apt-Get Clean & sudo apt-Get autoclean clear useless packages

Sudo apt-Get check whether any corrupted dependency exists

Where:

1. If sudo exists, administrator privileges are required!

2. In ubuntu, the short parameter is "-", and the long parameter is "--".

3. You can use the man command to view the help information or

Command-H (-- Help) to view

4. to exit the command in the man command, press "Q !!

Functions of ubuntu apt options

Use Sudo-H help to list usage methods and exit.

Sudo-V version displays the version information and exits.

Sudo-l list lists the commands that can be executed by the current user. This option can only be used by users in sudoers.

Sudo-u username | # uid user executes commands as a specified user. The following users are not only root users, but also usernames or # UIDs.

Sudo-K kill clears the time on the "admission ticket" and enters the password next time you use sudo.

Sudo-K sure kill is similar to-K, but it also needs to tear up the "Admission volume", that is, delete the timestamp file.

Sudo-B command background executes the specified command in the background.

Sudo-P prompt command prompt can change the prompt message for asking the password, where % u is replaced by the user account name, and % H displays the host name. Very user-friendly design.

Sudo-e file edit is equivalent to sudoedit, instead of executing a command, but modifying a file.

The above Ubuntu apt command parameter Introduction

From: http://www.jz123.cn/text/1330298.html
 

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.