apt 1.0

APT 1.0 was released on the 1. April 2014 [0]! The first APT version was announced on the 1. April exactly 16 years ago [1].

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 dist-upgrade –with-new-pkgs.
  • full-upgrade: a more meaningful name for dist-upgrade.
  • edit-sources: edit sources.list using $EDITOR.

Here is what the new progress looks like in 1.0:
apt-progress

You can enable/disable the install progress via:

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

If you have further suggestions or bugreport about APT, get in touch and most importantly, have fun!

Advertisements

Tags: ,

66 Responses to “apt 1.0”

  1. Tim Jordan Says:

    I love APT! Thank you for the update! TJ

  2. lkdjf Says:

    I look forward to using this – I’ve never understood why there are so many apt commands…

    Great news!

  3. Malizor Says:

    Cool!
    Will it be in Ubuntu 14.04?

    • cynicist Says:

      Yeah I just updated my 14.04 install today. Using ‘apt install foo’ is such a relief, you won’t even get it until you’ve had a chance to try it.

  4. default50 Says:

    Hi Michael, seems you missed a ; at the end of the line for the fancy progress.

    Anyway, this are great news, thanks!

  5. Rilasciata la versione 1.0 di APT | Mia mamma usa Linux! Says:

    […] Una lista completa delle funzionalità del nuovo binario è disponibile dal blog di Michael Vogt. […]

  6. Adam Says:

    I get an error when I run apt, unless I add a semicolon to the echo command:
    echo ‘Dpkg::Progress-Fancy “1”;’

  7. chilicuil Says:

    I hope the fancy progress bar doesn’t get enabled by default. Congrats with the 1.0 apt release!

    • mvogt Says:

      Fancy progress is the default for “apt”, but not for “apt-get”. And trivial to disable in “apt” too (by setting ‘Dpkg::Progress-Fancy “0”;’ in apt.conf).

  8. Michael Vogt: apt 1.0 | Hi-tech news Says:

    […] Go to Source […]

  9. Stephan Adig Says:

    Congrats Michael,

    well done 🙂

  10. osmancan Says:

    This is great! Thanks for your work in apt, it’s the best package manager.

    BTW, the new apt command seem like a good opportunity to integrate debdelta support to apt. Are there any plans for it?

  11. Юбилейный релиз пакетного менеджера Apt (Advanced Packaging Tool) 1.0 | Darfanix Says:

    […] Michael Vogt’s blog | http://anonscm.debian.org/gitweb/?p=apt/ […]

  12. Martin Says:

    Look’s good. Compared to other distros you have to use a lot of different commands for package management in debian. Apt-get, apt-cache, apt-list, dpkg.
    I’d appreciate to see this all combined in one tool. This is a great beginning.
    What’s currently missing: commands for apt are not completed at the moment (at least for me) and ‘policy’ is missing. I’m using ‘apt-cache policy’ very often because I have testing, unstable and experimental in my sources.list (ruled by apt-pinning) and use this to get an overview which versions are available.

    Best regards
    Martin

    • mvogt Says:

      Thanks for your feedback. Does “apt list pkgname -a” (–all-versions) is good enough for your use-case or do you need the policy score as well (or some other information that list does not provide?)

      • Martin Says:

        This would be fine in most cases. Only if I configured apt-pinning for a package I’d need the policy scores to validate my settings.

  13. Tuan Pembual Says:

    Reblogged this on Perjalanan Tuan Pembual Kepulau Ketiga and commented:
    Finally – apt 1.0

  14. Ben Istro Says:

    isn’t the command name “apt” already “taken” by Java’s Annotation Processing Tool?

    • mirabilos Says:

      Yes… apt now Breaks/Replaces Java™ due to this… and newer versions of JDK appear to not ship the apt tool any more. Makes one wonder…

    • mvogt Says:

      Correct, older java versions shipped a “apt” command as well – but thats deprecated since some versions so we can have the name.

  15. Walter Cheuk Says:

    Please, add “clean” to the command list.

    • mvogt Says:

      Thanks for this suggestion! We are currently discussed a extended “clean” that will also print information about no-longer-downloadable packages and leftover configuration files (packages in the dpkg ^rc state).

      • Walter Cheuk Says:

        Also “autoremove” is an often-used command.

      • Michael Slinn Says:

        (Nearly 2 years later) Don’t know when an all-singing, all-dancing clean might become available, but until then, how about providing autoclean and autoremove as is, or even combining them into apt clean?

  16. Elessar Says:

    Moo !

  17. mirabilos Says:

    AIUI, upgrade is *not* “just like the regular apt-get update”, but also enables –with-new-pkgs.

  18. angry Says:

    Too early for 1.0. First you should have fixed the bad bug:
    https://bugs.launchpad.net/bugs/756317

  19. Fábio Nogueira Says:

    How to uninstall this version? I have problem with my Ubuntu 14.04… He need libapt-pkg4.12 0.9.16 and in my system have 0.9.15. When I run sudo apt-get install -f, he want remove ubuntu-gnome-desktop, sofwarer-center, etc… How to fix this?

  20. Fábio Nogueira Says:

    Gotcha!

    I run:

    sudo apt-cache showdpkg apt

    And install the old version:

    sudo apt-get install apt=0.9.15.4ubuntu5

    Done! My old version is come back..

  21. Debian’s APT Package Manager Has Reached Version 1.0, Comming With New Features | LinuxG.net Says:

    […] according to it’s developer, APT 1.0  comes with a new […]

  22. Юбилейный релиз пакетного менеджера Apt (Advanced Packaging Tool) 1.0 | Vasily Zakharov Says:

    […] Michael Vogt’s blog | http://anonscm.debian.org/gitweb/?p=apt/ […]

  23. nknico Says:

    I can I change the color of the progress bar ? I don’t like this green…

  24. Peter Matulis Says:

    Awesome. When shall we expect command completion for this new binary?

  25. Treviño Says:

    For those who are still used to the “old” apt-get prefix,you can put a script like this in your path named apt-get in order to switch to apt (includes automatic “sudo” prefix addition”): http://pastebin.ubuntu.com/7245192/

  26. Linux Outlaws 341 – Number One Cyber Guy | Sixgun Productions Says:

    […] After 16 years: Apt 1.0 […]

  27. Nuevo APT: el popular gestor de paquetes de Ubuntu se actualiza Says:

    […] y parámetros de apt-cache y apt-get en un solo comando, y claro, no es otro que el propio apt. Michael Vogt nos dejó en su blog las nuevas opciones que ahora se reúnen bajo el comando APT y son las […]

  28. Nuevo APT: el popular gestor de paquetes de Ubuntu se actualiza | Misiongeek Says:

    […] y parámetros de apt-cache y apt-get en un solo comando, y claro, no es otro que el propio apt. Michael Vogt nos dejó en su blog las nuevas opciones que ahora se reúnen bajo el comando APT y son las […]

  29. Nuevo APT: el popular gestor de paquetes de Ubuntu se actualiza | Hoy en Noticias Says:

    […] parámetros de apt-cache y apt-get en un solo comando, y claro, no es otro que el propio apt. Michael Vogt nos dejó en su blog las nuevas opciones que ahora se reúnen bajo el comando APT y son las […]

  30. Nuevo APT: el popular gestor de paquetes de Ubuntu se actualiza | recolector.de {tecnologia} Says:

    […] y parámetros de apt-cache y apt-get en un solo comando, y claro, no es otro que el propio apt. Michael Vogt nos dejó en su blog las nuevas opciones que ahora se reúnen bajo el comando APT y son las […]

  31. Nuevo APT: el popular gestor de paquetes de Ubuntu se actualiza | Actualidad mobile | Bridgen.com Says:

    […] y parámetros de apt-cache y apt-get en un solo comando, y claro, no es otro que el propio apt. Michael Vogt nos dejó en su blog las nuevas opciones que ahora se reúnen bajo el comando APT y son las […]

  32. Nuevo APT: el popular gestor de paquetes de Ubuntu se actualiza | SUNETFON Says:

    […] y parámetros de apt-cache y apt-get en un solo comando, y claro, no es otro que el propio apt. Michael Vogt nos dejó en su blog las nuevas opciones que ahora se reúnen bajo el comando APT y son las […]

  33. Noticia/novedad - Nuevo APT 1.0 Says:

    […] […]

  34. El nuevo APT en Debian | LiGNUx Says:

    […] de apt-cache y apt-get en un solo comando, y claro, no es otro que el propio APT. Michael Vogt nos dejó en su blog las nuevas opciones que ahora se usan con el comando APT, son […]

  35. Josue Ortega Says:

    Reblogged this on Open Fecks.

  36. Cómo añadir una barra de progreso a APT • artescritorio Says:

    […] en: Michael Vogt’s Blog, OMG! […]

  37. Veja como inserir PPA no Debian e derivados via interface gráfica, conheça o Debian’s APT (Advanced Package Tool)! | Comunidade GNU/Linux SempreUpdate Says:

    […] interface gráfica. Quer conhecer melhor o projeto, então visite o site do desenvolvedor clicando AQUI. Mas você também pode tê-lo no seu Ubuntu e […]

  38. Veja como inserir PPA no Debian e derivados via interface gráfica, conheça o Debian’s APT (Advanced Package Tool)! – Comunidade GNU/Linux SempreUpdate Says:

    […] interface gráfica. Quer conhecer melhor o projeto, então visite o site do desenvolvedor clicando AQUI. Mas você também pode tê-lo no seu Ubuntu e […]

  39. What’s New in Apt 1.0? | tranjeeshan Says:

    […] Michael Vogt’s blog To know about these and more, open terminal and execute the following: man apt Using manpages is a […]

  40. Debian APT 1.0 Rilasciato, le novità e come installarlo – Gda Tech Says:

    […] Per maggiori informazioni su APT 1.0 consiglio di consultare il post dedicato rilasciato da Michael Vogt. […]

  41. DC Says:

    Well who gave you that idea? 😉

  42. issue #18: OpenSSL, Debian, Caddy, Systemd, Bash, Make & many more! - Cron Weekly: a weekly newsletter for Linux and Open Source sysadmins Says:

    […] Apt 1.0 […]

  43. Apt yüzde gösterge – Linkler Says:

    […] apt 1.0 […]

  44. APT e la barra di avanzamento – Riccardo Mollo – Informatica e Fotografia Says:

    […] apt 1.0 […]

  45. Erste Vorschau auf Ubuntu 16.04 | ubuntu-buch.info Says:

    […] Vorstellung von apt im Blog von Michael Vogt […]

  46. Ubuntu 16.04 | ubuntu-buch.info Says:

    […] apt statt apt-get: Um Pakete per Kommando zu installieren, stehen weiterhin die vertrauten Kommandos apt-get und aptitude zur Verfügung. Empfohlen wird nun aber das neuere Kommando apt (siehe auch das Debian-Handbuch sowie diesen Blog-Beitrag). […]

  47. keshavnrj Says:

    ubuntu play store released

    http://www.ktechpit.com/ubuntu/ubuntu-play-store-version-3-0-released-adds-paypal-integration/

  48. Luther Goh Says:

    I believe there is a mistake in the post:

    “upgrade: the same as apt-get dist-upgrade –with-new-pkgs.”

    Should be:

    “upgrade: the same as apt-get upgrade –with-new-pkgs.”

    Reason:
    upgrade is used to install available upgrades of all packages
    currently installed on the system from the sources configured via
    sources.list(5). New packages will be installed if required to
    statisfy dependencies, but existing packages will never be removed.
    If an upgrade for a package requires the remove of an installed
    package the upgrade for this package isn’t performed.

    dist-upgrade
    dist-upgrade in addition to performing the function of upgrade,
    also intelligently handles changing dependencies with new versions
    of packages; apt-get has a “smart” conflict resolution system, and
    it will attempt to upgrade the most important packages at the
    expense of less important ones if necessary. The dist-upgrade
    command may therefore remove some packages. The
    /etc/apt/sources.list file contains a list of locations from which
    to retrieve desired package files. See also apt_preferences(5) for
    a mechanism for overriding the general settings for individual
    packages.

  49. recio Says:

    As far as I know most of the code between apt and apt-get is common.

    Apt is more user friendly but both do the same.

    My question is why the developers decided to create apt. Was apt created to replace apt-get?

  50. The differences between apt and apt-get – Michael Wilcox Says:

    […] https://mvogt.wordpress.com/2014/04/04/apt-1-0/ […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: