当前位置:网站首页>The difference between apt and apt get
The difference between apt and apt get
2022-06-24 12:45:00 【Chen Bucheng I】
One . brief introduction
**Ubuntu 16.04 A notable new feature of is apt Ordered “ introduce ”. in fact ,apt The first stable version of was in 2014 Published in , But as the Ubuntu 16.04 Release , People are 2016 Began to notice it in .
You usually see apt install package Not the usual apt-get install package. Final , Many other distributions follow Ubuntu And start encouraging users to use apt instead of apt-get.
You may want to know apt-get and apt What's the difference ? If they have a similar command structure , So new apt What is required for the command ? You may still be thinking about apt Is it better than apt-get Better ? You should use new apt The command still insists on using the old apt-get command ? I will explain all these issues in this article , I hope that at the end of this article , You will have a clearer understanding .
Two .apt vs apt-get
about Linux Mint Users , This is a simple statement . A few years ago ,Linux Mint Implemented a program called apt Of python Wrappers , It actually uses apt-get, But it offers more friendly options . The problem we are discussing here is related to Linux Mint Different problems in .
When we see apt and apt-get The difference between before , Let's take a look at the background of these commands and what they really want to achieve .
Why? apt First introduced ?
Debian,Ubuntu,Linux Mint, Master of the basic operating system and other distributions Linux, It has a powerful packaging system , Each component and application is built into a package installed on the system .Debian Use a group named Advanced Packaging Tool(APT) Tools to manage this packaging system . Don't associate it with commands apt confusion , It's different . There are various and APT Interactive tools , Allows you to use the Debian Of Linux Install... In the distribution , Delete and manage packages .
apt-get Is a widely popular command line tool . Another popular tool is have GUI And command line options Aptitude. If you have read about apt-get A guide to orders , You may encounter many similar commands , for example apt-cache. This is where the problem arises .
You see , The usage of these commands is too low , They have many functions , ordinary Linux Users may never have used . On the other hand , The most commonly used package management commands are distributed in apt-get and apt-cache in . The apt Package commands have been introduced to solve this problem .apt contain apt-get and apt-cache Some of the most widely used features in , In addition to blurring and rarely used features . It can also be managed apt.conf file . Use apt, You don't have to go from apt-get Order to apt-cache.apt More structured , Provides you with the necessary options for management packs .
Conclusion :apt = apt-get and apt-cache The most common command options in .
apt and apt-get The difference between
therefore , Use apt, You can get all the necessary tools in one place . You won't get lost in a lot of command options .apt The main purpose of is to “ Pleasant for end users ” Provides an efficient way to handle command packages .
When Debian say “ Very pleasant for the end user ” when , It actually means . It has fewer but enough command options , But in a more organized way . most important of all , By default, it enables some options that are actually useful to end users .
for example , You can go to apt View the progress bar when installing or removing programs in .
apt You will also be prompted for the number of packages that can be upgraded when updating the repository database .
If you use other command options , You can also use apt-get To achieve the same function .apt By default, they are enabled and pain is eliminated .
apt and apt-get The difference between orders
although apt There are indeed some with apt-get Similar command options , But it is not related to apt-get Backward compatibility . This means that if you just use apt Replace apt-get Ordered apt-get part , It will not always work . Let's see which apt The order replaced apt-get and apt-cache Command options
I should use apt still apt-get?
You may be wondering if you should use apt or apt-get.
- As ordinary Linux user , My answer is with apt Use it together .
- apt yes Linux Commands recommended by the distribution . It provides the necessary options for management packs . most important of all , Easier to use with fewer but easy to remember options .
Unless you want to use it apt-get Specific operations for more functions , Otherwise, I think there is no reason to insist on using apt-get.
3、 ... and . Conclusion
I wish I could explain apt and apt-get The difference between . Last , To sum up apt And apt-get The argument for :
- apt yes apt-get and apt-cache A subset of commands , Provide necessary commands for package management
- although apt-get Will not be abandoned , But as an ordinary user , You should start using more often apt
边栏推荐
- Kubernetes log viewer - kubetail
- 钉钉、飞书、企业微信:迥异的商业门道
- Data stack technology sharing: open source · data stack - extend flinksql to realize the join of flow and dimension tables
- Tencent cloud and the ICT Institute launched the preparation of the "cloud native open source white paper" to deeply interpret cloud native
- Node cache vs browser cache
- Continuous testing | key to efficient testing in Devops Era
- Kubernetes best practice: graceful termination
- How does the video networking / network penetration tool easynts permanently delete one of the devices?
- IOMMU (VII) -vfio and mdev
- 【概率论期末抱佛脚】概念+公式(不含参数估计)
猜你喜欢

The text to voice function is available online. You can experience the services of professional broadcasters. We sincerely invite you to try it out

Use the open source tool k8tz to gracefully set the kubernetes pod time zone

Opencv learning notes - regions of interest (ROI) and image blending

微医CodeReview工具链

QT -- the qtabwidget supports dragging tabbar items
![[2022 national tournament simulation] BigBen -- determinant, Du Jiao sieve](/img/ec/6c6e3d878e2a05a6e7a4ca336ae134.jpg)
[2022 national tournament simulation] BigBen -- determinant, Du Jiao sieve

一纸英雄帖,激起千层浪,横跨10国,一线大厂都派人来了!-GWEI 2022-新加坡

巴比特 | 元宇宙每日必读:618成绩已然揭晓,在这份还算满意的答卷背后,数字藏品做出了多少贡献?...
[mysql_16] variables, process control and cursors

WPF from zero to 1 tutorial details, suitable for novices on the road
随机推荐
使用开源工具 k8tz 优雅设置 Kubernetes Pod 时区
2021-06-02: given the head node of a search binary tree, it will be transformed into an ordered two-way linked list with head and tail connected.
Example of SMS interface verification code function implemented by ThinkPHP framework
Automatic reconstruction of pod after modifying resource object
Getting started with scrapy
Pipeline shared library
Metamask项目方给Solidity程序员的16个安全建议
Essential key steps in the construction of e-commerce live broadcast source code
Continuous testing | test process improvement: practice continuous testing within iterations in coding
[2021 techo youth dry goods sorting post, there is always one you are interested in]
Conceptual analysis of DDD Domain Driven Design
How to calculate the bandwidth of video transmission? How much bandwidth is required to transmit 4K video?
Opencv learning notes - matrix normalization normalize() function
What is SCRM? What is the difference between SCRM and CRM
Mlife forum | microbiome and data mining
pipeline groovy
Deep parsing and implementation of redis pub/sub publish subscribe mode message queue
Parse NC format file and GRB format file dependent package edu ucar. API learning of netcdfall
Easynvr user login is modified to share the modification process of ip+ user name restriction
The text to voice function is available online. You can experience the services of professional broadcasters. We sincerely invite you to try it out