current position:Home>The difference between apt and apt get
The difference between apt and apt get
2022-06-24 12:45:19【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
copyright notice
author[Chen Bucheng I],Please bring the original link to reprint, thank you.
https://en.chowdera.com/2022/175/20210526152008338T.html
The sidebar is recommended
- [Tencent cloud 618 countdown!] Promotion strategy of the promotion activities
- Simple and flexible permission design?
- Making daily menu applet with micro build low code
- 99% of the students can't write good code because of this problem!
- Istio practical skills: using prism to construct multi version test services
- Kubernetes practical technique: setting kernel parameters for pod
- A scheme for crawlers to collect public opinion data
- Essential key steps in the construction of e-commerce live broadcast source code
- How do websites and we media tap user needs? Deeply expose the secrets behind the keywords!
- From theory to practice, decipher Alibaba's internal MySQL optimization scheme in simple terms
guess what you like
Continuous testing | key to efficient testing in Devops Era
It's settled! Bank retail credit risk control just does it!
Encapsulate the method of converting a picture file object to Base64
The pod is evicted due to insufficient disk space of tke node
Post processing - deep camera deformation effects
Tencent released credit risk control results safely: it has helped banks lend more than 100 billion yuan
Interesting erasure code
Five minutes to develop your own code generator
How to make secruecrt more productive
About me, a 19 line programmer
Random recommended
- Kubernetes practical skill: entering container netns
- [programming navigation] the practical code summarized by foreign great God, learned in 30 seconds!
- Design and implementation of high performance go log library zap
- Ghost, a synonym for blog system
- Engage in audio and video development? Several things I have to say about SRT live broadcast protocol
- IOMMU (VII) -vfio and mdev
- [highlights] summary of award-winning activities of Tencent cloud documents
- The programmer's graduation project is still bald after a year
- How to solve the problem that MBR does not support partitions over 2T, and lossless transfer to GPT
- Another prize! Tencent Youtu won the leading scientific and technological achievement award of the 2021 digital Expo
- Use txvideoeditor to add watermark and export video card at 99%? No successful failed callback?
- Reset the password, and the automatic login of the website saved by chrome Google browser is lost. What is the underlying reason?
- [log service CLS] Tencent cloud log service CLS accesses CDN
- [live broadcast of celebrities] elastic observability workshop
- Smart Policing: how to use video intelligent analysis technology to help urban policing visual comprehensive supervision and command system
- SMS SMS
- WPF from zero to 1 tutorial details, suitable for novices on the road
- Dingding, Feishu, and enterprise wechat: different business approaches
- [2022 national tournament simulation] BigBen -- determinant, Du Jiao sieve
- How to do research on plant endophytes? Special topic on Microbiology
- Mlife forum | microbiome and data mining
- 105. simple chat room 8: use socket to transfer pictures
- Parse NC format file and GRB format file dependent package edu ucar. API learning of netcdfall
- Reading notes of returning to hometown
- Generate the NC file of 4-D air pressure and temperature, and then read the code (provide the code)
- Codereview tool chain for micro medicine
- Babbitt | metauniverse daily must read: 618 scores have been announced. How much contribution has the digital collection made behind this satisfactory answer
- On the value foam of digital copyright works from the controversial nature of "Meng Hua Lu"
- Use the open source tool k8tz to gracefully set the kubernetes pod time zone
- How does Argo family bucket make Devops easier?
- A hero's note stirred up a thousand waves across 10 countries, and the first-line big factories sent people here- Gwei 2022 Singapore
- MySQL foreign key impact
- Common special characters in JS and TS
- The text to voice function is available online. You can experience the services of professional broadcasters. We sincerely invite you to try it out
- Who said that "programmers are useless without computers? The big brother around me disagrees! It's true
- what the fuck! I'm flattered. He actually wrote down the answers to the redis interview questions that big companies often ask!
- Concept + formula (excluding parameter estimation)
- [database] final review (planning Edition)
- Troubleshooting and optimization of files that cannot be globally searched by ordinary users in easydss video platform customization project
- How can ffmpeg streaming to the server save video as a file through easydss video platform?