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!

About these ads

Tags: ,

50 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).

  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! […]

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


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: