What is the difference between apt and apt-get?Use apt directly vs apt-*?Difference between apt and apt-getIs apt-get update and upgrade necessary?What is the difference between these two commands?What is the status of apt-get relative to apt?What is the difference between 'sudo apt autoremove' and 'sudo apt-get autoremove'?we have 'apt-get', 'apt', and 'aptitude'. How can I know which/when to use?How do I remove old kernel versions to clean up the boot menu?How to install Android Studio on Ubuntu?Is 'apt-get' deprecated?What is the difference between apt-get update and upgrade?apt-get returns Not Found when using Amazon's AWS repositoriesUse apt progress bar in custom scripts

Remove vertical space in gather enviroment

Justification for excluding gravitational energy from the stress-energy tensor

Heat involved in isenthalpic process

Why do microwaves use magnetron?

Why are bagpipes tuned using just intonation?

Why are so many cities in the list of 50 most violent cities in the world located in South and Central America?

How do I figure out how many hydrogens my compound actually has using a mass and NMR spectrum?

Is dark matter inside galaxies different from dark matter in intergalactic space?

Noise reduction using multiple recordings of the same signal

Why do we use the Greek letter μ (Mu) to denote population mean or expected value in probability and statistics

What techniques can I use to seduce a PC without arousing suspicion of ulterior motives?

Why did Grima shed a tear?

Term for anticipating counterarguments and rebutting them

What does “studies need to be taken with more than the usual grain of salt” mean?

What happens to a Bladesinger reincarnated as a Human?

What do you call this when cats hunch their backs and their fur stands on end?

Is it bizarre that a professor asks every student for a 3 inch by 5 inch photograph?

Why is Eastern Switzerland called Suisse orientale in French?

"Du hast es gut", small talk meaning?

Is there any algorithm that runs faster in Mathematica than in C or Fortran?

Protecting Seals from Forgery

where does black come from in CMYK color mode?

Command which removes data left side of ";" (semicolon) on each row

How can an immortal member of the nobility be prevented from taking the throne?



What is the difference between apt and apt-get?


Use apt directly vs apt-*?Difference between apt and apt-getIs apt-get update and upgrade necessary?What is the difference between these two commands?What is the status of apt-get relative to apt?What is the difference between 'sudo apt autoremove' and 'sudo apt-get autoremove'?we have 'apt-get', 'apt', and 'aptitude'. How can I know which/when to use?How do I remove old kernel versions to clean up the boot menu?How to install Android Studio on Ubuntu?Is 'apt-get' deprecated?What is the difference between apt-get update and upgrade?apt-get returns Not Found when using Amazon's AWS repositoriesUse apt progress bar in custom scripts






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









462

















I read about the new fancy progress bar which was added to apt 1.0 in Softpedia and how to enable it here. However on running sudo apt-get update, I did not see the fancy progress bars. On reading the second link again, the solution explicitly requires you to use sudo apt update.



Hence my question is the difference between apt and apt-get. I thought they were one and the same.










share|improve this question























  • 1





    AFAIK they are only available in Trusty. Here is how to enable them: askubuntu.com/questions/445245/…

    – Seth
    Apr 11 '14 at 15:04







  • 8





    given that @Seth 's comment is almost 2 years old, I thought I would add now that it is available, installed and usable out of the box. Nothing is required to enable them, just use apt instead of apt-get (I'm on 15.10)

    – Madivad
    Feb 25 '16 at 23:21

















462

















I read about the new fancy progress bar which was added to apt 1.0 in Softpedia and how to enable it here. However on running sudo apt-get update, I did not see the fancy progress bars. On reading the second link again, the solution explicitly requires you to use sudo apt update.



Hence my question is the difference between apt and apt-get. I thought they were one and the same.










share|improve this question























  • 1





    AFAIK they are only available in Trusty. Here is how to enable them: askubuntu.com/questions/445245/…

    – Seth
    Apr 11 '14 at 15:04







  • 8





    given that @Seth 's comment is almost 2 years old, I thought I would add now that it is available, installed and usable out of the box. Nothing is required to enable them, just use apt instead of apt-get (I'm on 15.10)

    – Madivad
    Feb 25 '16 at 23:21













462












462








462


147






I read about the new fancy progress bar which was added to apt 1.0 in Softpedia and how to enable it here. However on running sudo apt-get update, I did not see the fancy progress bars. On reading the second link again, the solution explicitly requires you to use sudo apt update.



Hence my question is the difference between apt and apt-get. I thought they were one and the same.










share|improve this question

















I read about the new fancy progress bar which was added to apt 1.0 in Softpedia and how to enable it here. However on running sudo apt-get update, I did not see the fancy progress bars. On reading the second link again, the solution explicitly requires you to use sudo apt update.



Hence my question is the difference between apt and apt-get. I thought they were one and the same.







apt






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:25









Community

1




1










asked Apr 9 '14 at 9:16









nik90nik90

5,24410 gold badges37 silver badges71 bronze badges




5,24410 gold badges37 silver badges71 bronze badges










  • 1





    AFAIK they are only available in Trusty. Here is how to enable them: askubuntu.com/questions/445245/…

    – Seth
    Apr 11 '14 at 15:04







  • 8





    given that @Seth 's comment is almost 2 years old, I thought I would add now that it is available, installed and usable out of the box. Nothing is required to enable them, just use apt instead of apt-get (I'm on 15.10)

    – Madivad
    Feb 25 '16 at 23:21












  • 1





    AFAIK they are only available in Trusty. Here is how to enable them: askubuntu.com/questions/445245/…

    – Seth
    Apr 11 '14 at 15:04







  • 8





    given that @Seth 's comment is almost 2 years old, I thought I would add now that it is available, installed and usable out of the box. Nothing is required to enable them, just use apt instead of apt-get (I'm on 15.10)

    – Madivad
    Feb 25 '16 at 23:21







1




1





AFAIK they are only available in Trusty. Here is how to enable them: askubuntu.com/questions/445245/…

– Seth
Apr 11 '14 at 15:04






AFAIK they are only available in Trusty. Here is how to enable them: askubuntu.com/questions/445245/…

– Seth
Apr 11 '14 at 15:04





8




8





given that @Seth 's comment is almost 2 years old, I thought I would add now that it is available, installed and usable out of the box. Nothing is required to enable them, just use apt instead of apt-get (I'm on 15.10)

– Madivad
Feb 25 '16 at 23:21





given that @Seth 's comment is almost 2 years old, I thought I would add now that it is available, installed and usable out of the box. Nothing is required to enable them, just use apt instead of apt-get (I'm on 15.10)

– Madivad
Feb 25 '16 at 23:21










4 Answers
4






active

oldest

votes


















405


















They are very similar command line tools available in Trusty. apt-get and apt-cache's most commonly used commands are available in apt.



apt-get may be considered as lower-level and "back-end", and support other APT-based tools. apt is designed for end-users (human) and its output may be changed between versions.



Note from apt(8):



The `apt` command is meant to be pleasant for end users and does not need
to be backward compatible like apt-get(8).


Take a look at this post for more information on the new tool:



  • http://mvogt.wordpress.com/2014/04/04/apt-1-0/

A synopsis of the above link (with corrections*):




The big news for this version is that we included a new “apt” binary that combines the most commonly used commands from apt-get and apt-cache. The commands are the same as their apt-get/apt-cache counterparts but with slightly different configuration options.




Currently the apt binary supports the following commands:




  • list: which is similar to dpkg list and can be used with flags like
    --installed or --upgradable.


  • search: works just like apt-cache search but sorted alphabetically.


  • show: works like apt-cache show but hide some details that people are less likely to care about (like the hashes). The full record is still available via apt-cache show of course.


  • update: just like the regular apt-get update with color output enabled.


  • install,remove: adds progress output during the dpkg run.


  • upgrade: the same as apt-get upgrade --with-new-pkgs.*


  • full-upgrade: a more meaningful name for dist-upgrade.


  • edit-sources: edit sources.list using $EDITOR.


  • policy: works just like apt-cache policy

You can enable/disable the install progress [bar] via:



# echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar





share|improve this answer























  • 3





    Just curious - isn't apt upgrade equivalent to 'upgrade --with-new-pkgs' (instead of dist-upgrade which IIRC does it by default and also removes)?

    – zeratul021
    Apr 30 '16 at 20:10











  • Strangely apt upgrade gives me an error where apt-get upgrade only prints a warning when a PPA does not have a Release file.

    – Tor Klingberg
    Nov 15 '16 at 17:00






  • 1





    That blog post is mistaken to say apt upgrade is like apt-get dist-upgrade --with-new-pkgs. dist-upgrade can install new packages and can remove them. UI aside, apt upgrade is apt-get upgrade --with-new-pkgs. See JungleMartin's answer and apt(8) on upgrade: "New packages will be installed if required to satisfy dependencies, but existing packages will never be removed."

    – Eliah Kagan
    Aug 11 '17 at 14:20







  • 3





    May be worth mentioning that starting in 16.04 by default apt does not save the downloaded packages while apt-get does.

    – doug
    Oct 3 '17 at 10:54


















70


















As I write this, the apt man page (my apt package version: 1.0.1ubuntu2.8) includes the following section:



DIFFERENCES TO APT-GET(8)
The apt command is meant to be pleasant for end users and does not need
to be backward compatible like apt-get(8). Therefore some options are
different:

· The option DPkg::Progress-Fancy is enabled.
· The option APT::Color is enabled.
· A new list command is available similar to dpkg --list.
· The option upgrade has --with-new-pkgs enabled by default.





share|improve this answer























  • 2





    This is the correct answer (for Debian and Ubuntu as well as other derivatives like Mint). In particular, running sudo apt upgrade will perform the same operations as sudo apt-get upgrade --with-new-pkgs. It will install new packages but, unlike sudo apt-get dist-upgrade, it will not remove old ones (except when installing a new version of the same package, of course--which sudo apt-get upgrade will also do). man apt further corroborates that this answer is correct.

    – Eliah Kagan
    Aug 11 '17 at 14:12












  • I'm rolling back your rollback of my edit because a) your formatting requires unnecessary scrolling, and b) your copied text is incorrect, the option isn't DPkgPM::..., but DPkg::.., as the online manpage shows.

    – muru
    Oct 3 '17 at 10:11






  • 2





    bonus points for RTFM

    – Thufir
    Oct 26 '17 at 13:29











  • The option "check" doesn't work with apt. I have to use "apt-get check". Why?

    – Juan
    Sep 17 at 19:58


















23


















There are various tools that interact with Advanced Packaging Tool (APT) and allow you to install, remove and manage packages in Debian based Linux distributions. apt-get is one such command-line tool which is widely popular. Another popular tool is Aptitude with both GUI and command-line options.



If you have used apt-get commands, you might have come across a number of similar commands such as apt-cache, apt-config etc. And this is where the problem arises.



You see, these commands are way too low level and they have so many functionalities which are perhaps never used by an average Linux user. On the other hand, the most commonly used package management commands are scattered across apt-get, apt-cache and apt-config.



The apt commands have been introduced to solve this problem. apt consists some of the most widely used features from apt-get, apt-cache and apt-config leaving aside obscure and seldom used features.



With apt, you don’t have to fiddle your way from apt-get to apt-cache to apt-config. apt is more structured and provides you with necessary options needed to manage packages.



Bottom line: apt = most common used command options from apt-get, apt-cache and apt-config.



I have written in detail on the difference between apt and apt-get.






share|improve this answer



































    15


















    APT is a vast project, whose original plans included a graphical interface. It is based on a library which contains the core application, and apt-get is the first front end — command-line based — which was developed within the project.




    apt is a second command-line based front end provided by APT which overcomes some design mistakes of apt-get.




    Quoted from:



    https://debian-handbook.info/browse/stable/sect.apt-get.html






    share|improve this answer





























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );














      draft saved

      draft discarded
















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f445384%2fwhat-is-the-difference-between-apt-and-apt-get%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown


























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      405


















      They are very similar command line tools available in Trusty. apt-get and apt-cache's most commonly used commands are available in apt.



      apt-get may be considered as lower-level and "back-end", and support other APT-based tools. apt is designed for end-users (human) and its output may be changed between versions.



      Note from apt(8):



      The `apt` command is meant to be pleasant for end users and does not need
      to be backward compatible like apt-get(8).


      Take a look at this post for more information on the new tool:



      • http://mvogt.wordpress.com/2014/04/04/apt-1-0/

      A synopsis of the above link (with corrections*):




      The big news for this version is that we included a new “apt” binary that combines the most commonly used commands from apt-get and apt-cache. The commands are the same as their apt-get/apt-cache counterparts but with slightly different configuration options.




      Currently the apt binary supports the following commands:




      • list: which is similar to dpkg list and can be used with flags like
        --installed or --upgradable.


      • search: works just like apt-cache search but sorted alphabetically.


      • show: works like apt-cache show but hide some details that people are less likely to care about (like the hashes). The full record is still available via apt-cache show of course.


      • update: just like the regular apt-get update with color output enabled.


      • install,remove: adds progress output during the dpkg run.


      • upgrade: the same as apt-get upgrade --with-new-pkgs.*


      • full-upgrade: a more meaningful name for dist-upgrade.


      • edit-sources: edit sources.list using $EDITOR.


      • policy: works just like apt-cache policy

      You can enable/disable the install progress [bar] via:



      # echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar





      share|improve this answer























      • 3





        Just curious - isn't apt upgrade equivalent to 'upgrade --with-new-pkgs' (instead of dist-upgrade which IIRC does it by default and also removes)?

        – zeratul021
        Apr 30 '16 at 20:10











      • Strangely apt upgrade gives me an error where apt-get upgrade only prints a warning when a PPA does not have a Release file.

        – Tor Klingberg
        Nov 15 '16 at 17:00






      • 1





        That blog post is mistaken to say apt upgrade is like apt-get dist-upgrade --with-new-pkgs. dist-upgrade can install new packages and can remove them. UI aside, apt upgrade is apt-get upgrade --with-new-pkgs. See JungleMartin's answer and apt(8) on upgrade: "New packages will be installed if required to satisfy dependencies, but existing packages will never be removed."

        – Eliah Kagan
        Aug 11 '17 at 14:20







      • 3





        May be worth mentioning that starting in 16.04 by default apt does not save the downloaded packages while apt-get does.

        – doug
        Oct 3 '17 at 10:54















      405


















      They are very similar command line tools available in Trusty. apt-get and apt-cache's most commonly used commands are available in apt.



      apt-get may be considered as lower-level and "back-end", and support other APT-based tools. apt is designed for end-users (human) and its output may be changed between versions.



      Note from apt(8):



      The `apt` command is meant to be pleasant for end users and does not need
      to be backward compatible like apt-get(8).


      Take a look at this post for more information on the new tool:



      • http://mvogt.wordpress.com/2014/04/04/apt-1-0/

      A synopsis of the above link (with corrections*):




      The big news for this version is that we included a new “apt” binary that combines the most commonly used commands from apt-get and apt-cache. The commands are the same as their apt-get/apt-cache counterparts but with slightly different configuration options.




      Currently the apt binary supports the following commands:




      • list: which is similar to dpkg list and can be used with flags like
        --installed or --upgradable.


      • search: works just like apt-cache search but sorted alphabetically.


      • show: works like apt-cache show but hide some details that people are less likely to care about (like the hashes). The full record is still available via apt-cache show of course.


      • update: just like the regular apt-get update with color output enabled.


      • install,remove: adds progress output during the dpkg run.


      • upgrade: the same as apt-get upgrade --with-new-pkgs.*


      • full-upgrade: a more meaningful name for dist-upgrade.


      • edit-sources: edit sources.list using $EDITOR.


      • policy: works just like apt-cache policy

      You can enable/disable the install progress [bar] via:



      # echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar





      share|improve this answer























      • 3





        Just curious - isn't apt upgrade equivalent to 'upgrade --with-new-pkgs' (instead of dist-upgrade which IIRC does it by default and also removes)?

        – zeratul021
        Apr 30 '16 at 20:10











      • Strangely apt upgrade gives me an error where apt-get upgrade only prints a warning when a PPA does not have a Release file.

        – Tor Klingberg
        Nov 15 '16 at 17:00






      • 1





        That blog post is mistaken to say apt upgrade is like apt-get dist-upgrade --with-new-pkgs. dist-upgrade can install new packages and can remove them. UI aside, apt upgrade is apt-get upgrade --with-new-pkgs. See JungleMartin's answer and apt(8) on upgrade: "New packages will be installed if required to satisfy dependencies, but existing packages will never be removed."

        – Eliah Kagan
        Aug 11 '17 at 14:20







      • 3





        May be worth mentioning that starting in 16.04 by default apt does not save the downloaded packages while apt-get does.

        – doug
        Oct 3 '17 at 10:54













      405














      405










      405









      They are very similar command line tools available in Trusty. apt-get and apt-cache's most commonly used commands are available in apt.



      apt-get may be considered as lower-level and "back-end", and support other APT-based tools. apt is designed for end-users (human) and its output may be changed between versions.



      Note from apt(8):



      The `apt` command is meant to be pleasant for end users and does not need
      to be backward compatible like apt-get(8).


      Take a look at this post for more information on the new tool:



      • http://mvogt.wordpress.com/2014/04/04/apt-1-0/

      A synopsis of the above link (with corrections*):




      The big news for this version is that we included a new “apt” binary that combines the most commonly used commands from apt-get and apt-cache. The commands are the same as their apt-get/apt-cache counterparts but with slightly different configuration options.




      Currently the apt binary supports the following commands:




      • list: which is similar to dpkg list and can be used with flags like
        --installed or --upgradable.


      • search: works just like apt-cache search but sorted alphabetically.


      • show: works like apt-cache show but hide some details that people are less likely to care about (like the hashes). The full record is still available via apt-cache show of course.


      • update: just like the regular apt-get update with color output enabled.


      • install,remove: adds progress output during the dpkg run.


      • upgrade: the same as apt-get upgrade --with-new-pkgs.*


      • full-upgrade: a more meaningful name for dist-upgrade.


      • edit-sources: edit sources.list using $EDITOR.


      • policy: works just like apt-cache policy

      You can enable/disable the install progress [bar] via:



      # echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar





      share|improve this answer
















      They are very similar command line tools available in Trusty. apt-get and apt-cache's most commonly used commands are available in apt.



      apt-get may be considered as lower-level and "back-end", and support other APT-based tools. apt is designed for end-users (human) and its output may be changed between versions.



      Note from apt(8):



      The `apt` command is meant to be pleasant for end users and does not need
      to be backward compatible like apt-get(8).


      Take a look at this post for more information on the new tool:



      • http://mvogt.wordpress.com/2014/04/04/apt-1-0/

      A synopsis of the above link (with corrections*):




      The big news for this version is that we included a new “apt” binary that combines the most commonly used commands from apt-get and apt-cache. The commands are the same as their apt-get/apt-cache counterparts but with slightly different configuration options.




      Currently the apt binary supports the following commands:




      • list: which is similar to dpkg list and can be used with flags like
        --installed or --upgradable.


      • search: works just like apt-cache search but sorted alphabetically.


      • show: works like apt-cache show but hide some details that people are less likely to care about (like the hashes). The full record is still available via apt-cache show of course.


      • update: just like the regular apt-get update with color output enabled.


      • install,remove: adds progress output during the dpkg run.


      • upgrade: the same as apt-get upgrade --with-new-pkgs.*


      • full-upgrade: a more meaningful name for dist-upgrade.


      • edit-sources: edit sources.list using $EDITOR.


      • policy: works just like apt-cache policy

      You can enable/disable the install progress [bar] via:



      # echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar






      share|improve this answer















      share|improve this answer




      share|improve this answer








      edited Sep 20 '18 at 21:21









      dessert

      29.4k7 gold badges88 silver badges121 bronze badges




      29.4k7 gold badges88 silver badges121 bronze badges










      answered Apr 11 '14 at 14:46









      Mario LimoncielloMario Limonciello

      4,2141 gold badge10 silver badges3 bronze badges




      4,2141 gold badge10 silver badges3 bronze badges










      • 3





        Just curious - isn't apt upgrade equivalent to 'upgrade --with-new-pkgs' (instead of dist-upgrade which IIRC does it by default and also removes)?

        – zeratul021
        Apr 30 '16 at 20:10











      • Strangely apt upgrade gives me an error where apt-get upgrade only prints a warning when a PPA does not have a Release file.

        – Tor Klingberg
        Nov 15 '16 at 17:00






      • 1





        That blog post is mistaken to say apt upgrade is like apt-get dist-upgrade --with-new-pkgs. dist-upgrade can install new packages and can remove them. UI aside, apt upgrade is apt-get upgrade --with-new-pkgs. See JungleMartin's answer and apt(8) on upgrade: "New packages will be installed if required to satisfy dependencies, but existing packages will never be removed."

        – Eliah Kagan
        Aug 11 '17 at 14:20







      • 3





        May be worth mentioning that starting in 16.04 by default apt does not save the downloaded packages while apt-get does.

        – doug
        Oct 3 '17 at 10:54












      • 3





        Just curious - isn't apt upgrade equivalent to 'upgrade --with-new-pkgs' (instead of dist-upgrade which IIRC does it by default and also removes)?

        – zeratul021
        Apr 30 '16 at 20:10











      • Strangely apt upgrade gives me an error where apt-get upgrade only prints a warning when a PPA does not have a Release file.

        – Tor Klingberg
        Nov 15 '16 at 17:00






      • 1





        That blog post is mistaken to say apt upgrade is like apt-get dist-upgrade --with-new-pkgs. dist-upgrade can install new packages and can remove them. UI aside, apt upgrade is apt-get upgrade --with-new-pkgs. See JungleMartin's answer and apt(8) on upgrade: "New packages will be installed if required to satisfy dependencies, but existing packages will never be removed."

        – Eliah Kagan
        Aug 11 '17 at 14:20







      • 3





        May be worth mentioning that starting in 16.04 by default apt does not save the downloaded packages while apt-get does.

        – doug
        Oct 3 '17 at 10:54







      3




      3





      Just curious - isn't apt upgrade equivalent to 'upgrade --with-new-pkgs' (instead of dist-upgrade which IIRC does it by default and also removes)?

      – zeratul021
      Apr 30 '16 at 20:10





      Just curious - isn't apt upgrade equivalent to 'upgrade --with-new-pkgs' (instead of dist-upgrade which IIRC does it by default and also removes)?

      – zeratul021
      Apr 30 '16 at 20:10













      Strangely apt upgrade gives me an error where apt-get upgrade only prints a warning when a PPA does not have a Release file.

      – Tor Klingberg
      Nov 15 '16 at 17:00





      Strangely apt upgrade gives me an error where apt-get upgrade only prints a warning when a PPA does not have a Release file.

      – Tor Klingberg
      Nov 15 '16 at 17:00




      1




      1





      That blog post is mistaken to say apt upgrade is like apt-get dist-upgrade --with-new-pkgs. dist-upgrade can install new packages and can remove them. UI aside, apt upgrade is apt-get upgrade --with-new-pkgs. See JungleMartin's answer and apt(8) on upgrade: "New packages will be installed if required to satisfy dependencies, but existing packages will never be removed."

      – Eliah Kagan
      Aug 11 '17 at 14:20






      That blog post is mistaken to say apt upgrade is like apt-get dist-upgrade --with-new-pkgs. dist-upgrade can install new packages and can remove them. UI aside, apt upgrade is apt-get upgrade --with-new-pkgs. See JungleMartin's answer and apt(8) on upgrade: "New packages will be installed if required to satisfy dependencies, but existing packages will never be removed."

      – Eliah Kagan
      Aug 11 '17 at 14:20





      3




      3





      May be worth mentioning that starting in 16.04 by default apt does not save the downloaded packages while apt-get does.

      – doug
      Oct 3 '17 at 10:54





      May be worth mentioning that starting in 16.04 by default apt does not save the downloaded packages while apt-get does.

      – doug
      Oct 3 '17 at 10:54













      70


















      As I write this, the apt man page (my apt package version: 1.0.1ubuntu2.8) includes the following section:



      DIFFERENCES TO APT-GET(8)
      The apt command is meant to be pleasant for end users and does not need
      to be backward compatible like apt-get(8). Therefore some options are
      different:

      · The option DPkg::Progress-Fancy is enabled.
      · The option APT::Color is enabled.
      · A new list command is available similar to dpkg --list.
      · The option upgrade has --with-new-pkgs enabled by default.





      share|improve this answer























      • 2





        This is the correct answer (for Debian and Ubuntu as well as other derivatives like Mint). In particular, running sudo apt upgrade will perform the same operations as sudo apt-get upgrade --with-new-pkgs. It will install new packages but, unlike sudo apt-get dist-upgrade, it will not remove old ones (except when installing a new version of the same package, of course--which sudo apt-get upgrade will also do). man apt further corroborates that this answer is correct.

        – Eliah Kagan
        Aug 11 '17 at 14:12












      • I'm rolling back your rollback of my edit because a) your formatting requires unnecessary scrolling, and b) your copied text is incorrect, the option isn't DPkgPM::..., but DPkg::.., as the online manpage shows.

        – muru
        Oct 3 '17 at 10:11






      • 2





        bonus points for RTFM

        – Thufir
        Oct 26 '17 at 13:29











      • The option "check" doesn't work with apt. I have to use "apt-get check". Why?

        – Juan
        Sep 17 at 19:58















      70


















      As I write this, the apt man page (my apt package version: 1.0.1ubuntu2.8) includes the following section:



      DIFFERENCES TO APT-GET(8)
      The apt command is meant to be pleasant for end users and does not need
      to be backward compatible like apt-get(8). Therefore some options are
      different:

      · The option DPkg::Progress-Fancy is enabled.
      · The option APT::Color is enabled.
      · A new list command is available similar to dpkg --list.
      · The option upgrade has --with-new-pkgs enabled by default.





      share|improve this answer























      • 2





        This is the correct answer (for Debian and Ubuntu as well as other derivatives like Mint). In particular, running sudo apt upgrade will perform the same operations as sudo apt-get upgrade --with-new-pkgs. It will install new packages but, unlike sudo apt-get dist-upgrade, it will not remove old ones (except when installing a new version of the same package, of course--which sudo apt-get upgrade will also do). man apt further corroborates that this answer is correct.

        – Eliah Kagan
        Aug 11 '17 at 14:12












      • I'm rolling back your rollback of my edit because a) your formatting requires unnecessary scrolling, and b) your copied text is incorrect, the option isn't DPkgPM::..., but DPkg::.., as the online manpage shows.

        – muru
        Oct 3 '17 at 10:11






      • 2





        bonus points for RTFM

        – Thufir
        Oct 26 '17 at 13:29











      • The option "check" doesn't work with apt. I have to use "apt-get check". Why?

        – Juan
        Sep 17 at 19:58













      70














      70










      70









      As I write this, the apt man page (my apt package version: 1.0.1ubuntu2.8) includes the following section:



      DIFFERENCES TO APT-GET(8)
      The apt command is meant to be pleasant for end users and does not need
      to be backward compatible like apt-get(8). Therefore some options are
      different:

      · The option DPkg::Progress-Fancy is enabled.
      · The option APT::Color is enabled.
      · A new list command is available similar to dpkg --list.
      · The option upgrade has --with-new-pkgs enabled by default.





      share|improve this answer
















      As I write this, the apt man page (my apt package version: 1.0.1ubuntu2.8) includes the following section:



      DIFFERENCES TO APT-GET(8)
      The apt command is meant to be pleasant for end users and does not need
      to be backward compatible like apt-get(8). Therefore some options are
      different:

      · The option DPkg::Progress-Fancy is enabled.
      · The option APT::Color is enabled.
      · A new list command is available similar to dpkg --list.
      · The option upgrade has --with-new-pkgs enabled by default.






      share|improve this answer















      share|improve this answer




      share|improve this answer








      edited Oct 3 '17 at 9:58









      muru

      1




      1










      answered Sep 15 '15 at 15:20









      JungleMartinJungleMartin

      8176 silver badges3 bronze badges




      8176 silver badges3 bronze badges










      • 2





        This is the correct answer (for Debian and Ubuntu as well as other derivatives like Mint). In particular, running sudo apt upgrade will perform the same operations as sudo apt-get upgrade --with-new-pkgs. It will install new packages but, unlike sudo apt-get dist-upgrade, it will not remove old ones (except when installing a new version of the same package, of course--which sudo apt-get upgrade will also do). man apt further corroborates that this answer is correct.

        – Eliah Kagan
        Aug 11 '17 at 14:12












      • I'm rolling back your rollback of my edit because a) your formatting requires unnecessary scrolling, and b) your copied text is incorrect, the option isn't DPkgPM::..., but DPkg::.., as the online manpage shows.

        – muru
        Oct 3 '17 at 10:11






      • 2





        bonus points for RTFM

        – Thufir
        Oct 26 '17 at 13:29











      • The option "check" doesn't work with apt. I have to use "apt-get check". Why?

        – Juan
        Sep 17 at 19:58












      • 2





        This is the correct answer (for Debian and Ubuntu as well as other derivatives like Mint). In particular, running sudo apt upgrade will perform the same operations as sudo apt-get upgrade --with-new-pkgs. It will install new packages but, unlike sudo apt-get dist-upgrade, it will not remove old ones (except when installing a new version of the same package, of course--which sudo apt-get upgrade will also do). man apt further corroborates that this answer is correct.

        – Eliah Kagan
        Aug 11 '17 at 14:12












      • I'm rolling back your rollback of my edit because a) your formatting requires unnecessary scrolling, and b) your copied text is incorrect, the option isn't DPkgPM::..., but DPkg::.., as the online manpage shows.

        – muru
        Oct 3 '17 at 10:11






      • 2





        bonus points for RTFM

        – Thufir
        Oct 26 '17 at 13:29











      • The option "check" doesn't work with apt. I have to use "apt-get check". Why?

        – Juan
        Sep 17 at 19:58







      2




      2





      This is the correct answer (for Debian and Ubuntu as well as other derivatives like Mint). In particular, running sudo apt upgrade will perform the same operations as sudo apt-get upgrade --with-new-pkgs. It will install new packages but, unlike sudo apt-get dist-upgrade, it will not remove old ones (except when installing a new version of the same package, of course--which sudo apt-get upgrade will also do). man apt further corroborates that this answer is correct.

      – Eliah Kagan
      Aug 11 '17 at 14:12






      This is the correct answer (for Debian and Ubuntu as well as other derivatives like Mint). In particular, running sudo apt upgrade will perform the same operations as sudo apt-get upgrade --with-new-pkgs. It will install new packages but, unlike sudo apt-get dist-upgrade, it will not remove old ones (except when installing a new version of the same package, of course--which sudo apt-get upgrade will also do). man apt further corroborates that this answer is correct.

      – Eliah Kagan
      Aug 11 '17 at 14:12














      I'm rolling back your rollback of my edit because a) your formatting requires unnecessary scrolling, and b) your copied text is incorrect, the option isn't DPkgPM::..., but DPkg::.., as the online manpage shows.

      – muru
      Oct 3 '17 at 10:11





      I'm rolling back your rollback of my edit because a) your formatting requires unnecessary scrolling, and b) your copied text is incorrect, the option isn't DPkgPM::..., but DPkg::.., as the online manpage shows.

      – muru
      Oct 3 '17 at 10:11




      2




      2





      bonus points for RTFM

      – Thufir
      Oct 26 '17 at 13:29





      bonus points for RTFM

      – Thufir
      Oct 26 '17 at 13:29













      The option "check" doesn't work with apt. I have to use "apt-get check". Why?

      – Juan
      Sep 17 at 19:58





      The option "check" doesn't work with apt. I have to use "apt-get check". Why?

      – Juan
      Sep 17 at 19:58











      23


















      There are various tools that interact with Advanced Packaging Tool (APT) and allow you to install, remove and manage packages in Debian based Linux distributions. apt-get is one such command-line tool which is widely popular. Another popular tool is Aptitude with both GUI and command-line options.



      If you have used apt-get commands, you might have come across a number of similar commands such as apt-cache, apt-config etc. And this is where the problem arises.



      You see, these commands are way too low level and they have so many functionalities which are perhaps never used by an average Linux user. On the other hand, the most commonly used package management commands are scattered across apt-get, apt-cache and apt-config.



      The apt commands have been introduced to solve this problem. apt consists some of the most widely used features from apt-get, apt-cache and apt-config leaving aside obscure and seldom used features.



      With apt, you don’t have to fiddle your way from apt-get to apt-cache to apt-config. apt is more structured and provides you with necessary options needed to manage packages.



      Bottom line: apt = most common used command options from apt-get, apt-cache and apt-config.



      I have written in detail on the difference between apt and apt-get.






      share|improve this answer
































        23


















        There are various tools that interact with Advanced Packaging Tool (APT) and allow you to install, remove and manage packages in Debian based Linux distributions. apt-get is one such command-line tool which is widely popular. Another popular tool is Aptitude with both GUI and command-line options.



        If you have used apt-get commands, you might have come across a number of similar commands such as apt-cache, apt-config etc. And this is where the problem arises.



        You see, these commands are way too low level and they have so many functionalities which are perhaps never used by an average Linux user. On the other hand, the most commonly used package management commands are scattered across apt-get, apt-cache and apt-config.



        The apt commands have been introduced to solve this problem. apt consists some of the most widely used features from apt-get, apt-cache and apt-config leaving aside obscure and seldom used features.



        With apt, you don’t have to fiddle your way from apt-get to apt-cache to apt-config. apt is more structured and provides you with necessary options needed to manage packages.



        Bottom line: apt = most common used command options from apt-get, apt-cache and apt-config.



        I have written in detail on the difference between apt and apt-get.






        share|improve this answer






























          23














          23










          23









          There are various tools that interact with Advanced Packaging Tool (APT) and allow you to install, remove and manage packages in Debian based Linux distributions. apt-get is one such command-line tool which is widely popular. Another popular tool is Aptitude with both GUI and command-line options.



          If you have used apt-get commands, you might have come across a number of similar commands such as apt-cache, apt-config etc. And this is where the problem arises.



          You see, these commands are way too low level and they have so many functionalities which are perhaps never used by an average Linux user. On the other hand, the most commonly used package management commands are scattered across apt-get, apt-cache and apt-config.



          The apt commands have been introduced to solve this problem. apt consists some of the most widely used features from apt-get, apt-cache and apt-config leaving aside obscure and seldom used features.



          With apt, you don’t have to fiddle your way from apt-get to apt-cache to apt-config. apt is more structured and provides you with necessary options needed to manage packages.



          Bottom line: apt = most common used command options from apt-get, apt-cache and apt-config.



          I have written in detail on the difference between apt and apt-get.






          share|improve this answer
















          There are various tools that interact with Advanced Packaging Tool (APT) and allow you to install, remove and manage packages in Debian based Linux distributions. apt-get is one such command-line tool which is widely popular. Another popular tool is Aptitude with both GUI and command-line options.



          If you have used apt-get commands, you might have come across a number of similar commands such as apt-cache, apt-config etc. And this is where the problem arises.



          You see, these commands are way too low level and they have so many functionalities which are perhaps never used by an average Linux user. On the other hand, the most commonly used package management commands are scattered across apt-get, apt-cache and apt-config.



          The apt commands have been introduced to solve this problem. apt consists some of the most widely used features from apt-get, apt-cache and apt-config leaving aside obscure and seldom used features.



          With apt, you don’t have to fiddle your way from apt-get to apt-cache to apt-config. apt is more structured and provides you with necessary options needed to manage packages.



          Bottom line: apt = most common used command options from apt-get, apt-cache and apt-config.



          I have written in detail on the difference between apt and apt-get.







          share|improve this answer















          share|improve this answer




          share|improve this answer








          edited Feb 13 at 8:58









          David Foerster

          29.4k13 gold badges70 silver badges117 bronze badges




          29.4k13 gold badges70 silver badges117 bronze badges










          answered Jul 9 '17 at 9:08









          abhishekabhishek

          2,11612 silver badges13 bronze badges




          2,11612 silver badges13 bronze badges
























              15


















              APT is a vast project, whose original plans included a graphical interface. It is based on a library which contains the core application, and apt-get is the first front end — command-line based — which was developed within the project.




              apt is a second command-line based front end provided by APT which overcomes some design mistakes of apt-get.




              Quoted from:



              https://debian-handbook.info/browse/stable/sect.apt-get.html






              share|improve this answer
































                15


















                APT is a vast project, whose original plans included a graphical interface. It is based on a library which contains the core application, and apt-get is the first front end — command-line based — which was developed within the project.




                apt is a second command-line based front end provided by APT which overcomes some design mistakes of apt-get.




                Quoted from:



                https://debian-handbook.info/browse/stable/sect.apt-get.html






                share|improve this answer






























                  15














                  15










                  15









                  APT is a vast project, whose original plans included a graphical interface. It is based on a library which contains the core application, and apt-get is the first front end — command-line based — which was developed within the project.




                  apt is a second command-line based front end provided by APT which overcomes some design mistakes of apt-get.




                  Quoted from:



                  https://debian-handbook.info/browse/stable/sect.apt-get.html






                  share|improve this answer
















                  APT is a vast project, whose original plans included a graphical interface. It is based on a library which contains the core application, and apt-get is the first front end — command-line based — which was developed within the project.




                  apt is a second command-line based front end provided by APT which overcomes some design mistakes of apt-get.




                  Quoted from:



                  https://debian-handbook.info/browse/stable/sect.apt-get.html







                  share|improve this answer















                  share|improve this answer




                  share|improve this answer








                  edited Nov 15 '18 at 14:14









                  Zanna

                  53.6k15 gold badges150 silver badges252 bronze badges




                  53.6k15 gold badges150 silver badges252 bronze badges










                  answered Jun 1 '17 at 10:40









                  mitmit

                  1,3314 gold badges14 silver badges20 bronze badges




                  1,3314 gold badges14 silver badges20 bronze badges































                      draft saved

                      draft discarded















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f445384%2fwhat-is-the-difference-between-apt-and-apt-get%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown









                      Popular posts from this blog

                      Tamil (spriik) Luke uk diar | Nawigatjuun

                      Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                      Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?