15 Examples of How to Use New Advanced Package Tool (APT) in Ubuntu/Debian

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

19 Responses

  1. Ferdinand Thommes says:

    Most of the options in this howto neither work in debian sid (apt 1.4~beta1) or in a fully upgraded Ubuntu 16.10. (apt 1.3.1). And that has nothing to do with apt vs. apt-get. Could the author please point to any sources for commands like ‘apt deb’, ‘apt-check’ or ‘apt version’ or ‘apt content’?

    • Aaron Kili says:

      @Ferdinand

      It is actually true that many of the apt options above do not work on Debian or Ubuntu. However, on Linux Mint they look to be working so well, that is the source of the options you see in this How-To, you can test that yourself.

      • Ferdinand Thommes says:

        Well, not a big fan of Ubuntu and of Mint here. I just thought, that your headline was a bit off, after trying these commands in Debian. Then someone told me they don’t work in Ubuntu 16.04 either. So I threw 16.10 into a Vbox and …no dice.

  2. Foo Bar says:

    not available on 16.04, using latest available apt

    # apt
    apt 1.2.15 (amd64)
    Usage: apt [options] command

    Most used commands:
    list – list packages based on package names
    search – search in package descriptions
    show – show package details
    install – install packages
    remove – remove packages
    autoremove – Remove automatically all unused packages
    update – update list of available packages
    upgrade – upgrade the system by installing/upgrading packages
    full-upgrade – upgrade the system by removing/installing/upgrading packages
    edit-sources – edit the source information file

    See apt(8) for more information about the available commands.

    # apt content bash
    E: Invalid operation content

    • Aaron Kili says:

      @For

      Am running Linux Mint 18 which is has Ubuntu 16.04 as its core, and apt content bash seems to be working fine. apt on Linux Mint is perhaps different from the one on Debian, Ubuntu and its derivatives. This could be the could be the reason why you are getting the error.

  3. Eddie G. says:

    Some of these commands didn’t work on my Ubuntu 16.04 system. I checked to make sure “apt” was installed and it shows as being here, but “version” / “check” / and a few others didn’t work.

    Kept getting the error that “version” is an “invalid operation” the same with “check”. So I guess for now? I’ll stick to apt-get and leave this stuff alone until they get it working properly.

    No sense in breaking my skull trying to get this to work when it seems to have some glitches in it. (Sigh……..when will they learn to stop trying to “improve” things that are fine as they are?…)

    • Aaron Kili says:

      @Eddie G

      Thanks for offering us your experience and thoughts concerning apt tool. It surely realistic to stick with apt-get that has been tested and works very well on Debian and all its derivatives.

  4. airdrik says:

    “apt update” doesn’t install any updated packages (even for system/critical updates), it only downloads the updated list of packages.
    The system itself may have a mechanism for regularly applying critical updates regularly, but you would do that using the “apt upgrade” command.

    • Aaron Kili says:

      @airdrik

      Yap, that is so correct. apt update simply downloads an updated package sources list as you have clearly mentioned. We shall update the article to mention this.

  5. spoovy says:

    The Linux Mint command ‘apt’ is completely different from the one Debian uses — written by different people at different time. The older Mint version has recently been made to mimic the newer Debian version, but it has many more functions unique to it, like ‘version’ and ‘check’. I’d imagine Ubuntu uses the Debian one but I don’t know for certain.

    • Aaron Kili says:

      Many thanks for informing us of the difference between apt on Debian and some of its derivatives. Perhaps the developers will look into this issue with great concern to improve user experience.

  6. Aaron Kili K says:

    @ALJI Mohamed

    Try to check the manual entry for apt, some options may not be given in the help info or pages.

  7. marian says:

    i tried to use two of the options in this tutorial and i get the following errors

    apt content glances
    E: Invalid operation content

    apt deb google-chrome-stable_current_amd64.deb
    E: Invalid operation deb

    • Aaron Kili K says:

      It should work just fine, try to run apt get without any options, you should see all the options available that you can use including content and deb.

      If it still does not work, try installing it:

      sudo apt-get install apt

  8. svmtracking says:

    Like this one. Crystal-clear.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?