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:
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!
April 4, 2014 at 3:46 pm |
I love APT! Thank you for the update! TJ
April 4, 2014 at 3:59 pm |
I look forward to using this – I’ve never understood why there are so many apt commands…
Great news!
April 4, 2014 at 4:04 pm |
Cool!
Will it be in Ubuntu 14.04?
April 10, 2014 at 9:53 pm |
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.
April 4, 2014 at 4:54 pm |
Hi Michael, seems you missed a ; at the end of the line for the fancy progress.
Anyway, this are great news, thanks!
April 4, 2014 at 5:01 pm |
[…] Una lista completa delle funzionalità del nuovo binario è disponibile dal blog di Michael Vogt. […]
April 4, 2014 at 9:59 pm |
I get an error when I run apt, unless I add a semicolon to the echo command:
echo ‘Dpkg::Progress-Fancy “1”;’
April 6, 2014 at 6:12 pm |
There, I fixed it:
echo ‘Dpkg::Progress-Fancy “1”;’ |sudo tee -a /etc/apt/apt.conf.d/99progressbar
April 6, 2014 at 6:13 pm |
There, I fixed it (if wordpress doesn’t reformat this):
April 7, 2014 at 3:11 pm |
Thanks Adam, indeed I fogot the “;”. Fixed now.
April 5, 2014 at 12:47 am |
I hope the fancy progress bar doesn’t get enabled by default. Congrats with the 1.0 apt release!
April 7, 2014 at 3:44 pm |
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).
April 5, 2014 at 5:53 am |
[…] Go to Source […]
April 5, 2014 at 7:18 am |
Congrats Michael,
well done 🙂
April 5, 2014 at 10:11 am |
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?
April 5, 2014 at 4:17 pm |
[…] Michael Vogt’s blog | http://anonscm.debian.org/gitweb/?p=apt/ […]
April 5, 2014 at 11:41 pm |
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
April 7, 2014 at 3:36 pm |
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?)
April 7, 2014 at 6:33 pm
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.
April 6, 2014 at 1:10 am |
Reblogged this on Perjalanan Tuan Pembual Kepulau Ketiga and commented:
Finally – apt 1.0
April 6, 2014 at 4:25 pm |
isn’t the command name “apt” already “taken” by Java’s Annotation Processing Tool?
April 7, 2014 at 9:11 am |
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…
April 7, 2014 at 3:13 pm |
Correct, older java versions shipped a “apt” command as well – but thats deprecated since some versions so we can have the name.
April 7, 2014 at 7:50 am |
Please, add “clean” to the command list.
April 7, 2014 at 3:22 pm |
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).
April 7, 2014 at 3:27 pm
Also “autoremove” is an often-used command.
March 5, 2016 at 6:13 pm
(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?
April 7, 2014 at 8:11 am |
Moo !
April 7, 2014 at 9:10 am |
AIUI, upgrade is *not* “just like the regular apt-get update”, but also enables –with-new-pkgs.
April 7, 2014 at 9:58 am |
Too early for 1.0. First you should have fixed the bad bug:
https://bugs.launchpad.net/bugs/756317
April 7, 2014 at 12:46 pm |
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?
April 7, 2014 at 1:01 pm |
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..
April 7, 2014 at 5:31 pm |
[…] according to it’s developer, APT 1.0 comes with a new […]
April 9, 2014 at 9:49 am |
[…] Michael Vogt’s blog | http://anonscm.debian.org/gitweb/?p=apt/ […]
April 10, 2014 at 8:04 pm |
I can I change the color of the progress bar ? I don’t like this green…
April 11, 2014 at 12:30 pm |
Yes, you can add
to your /etc/apt/apt.conf file – this will give you a black background. Check http://en.wikipedia.org/wiki/ANSI_escape_code#Colors for the color choices.
April 12, 2014 at 5:37 pm
Great
April 11, 2014 at 12:48 pm |
Awesome. When shall we expect command completion for this new binary?
April 14, 2014 at 7:55 am |
Once https://alioth.debian.org/tracker/index.php?func=detail&aid=314652&group_id=100114&atid=413095 gets merged 🙂
April 13, 2014 at 3:42 pm |
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/
April 13, 2014 at 9:29 pm |
[…] After 16 years: Apt 1.0 […]
April 16, 2014 at 6:53 pm |
[…] 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 […]
April 16, 2014 at 7:00 pm |
[…] 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 […]
April 16, 2014 at 7:05 pm |
[…] 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 […]
April 16, 2014 at 7:23 pm |
[…] 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 […]
April 16, 2014 at 7:57 pm |
[…] 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 […]
April 16, 2014 at 7:59 pm |
[…] 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 […]
April 17, 2014 at 2:38 am |
[…] […]
April 17, 2014 at 1:01 pm |
[…] 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 […]
April 30, 2014 at 3:56 pm |
Reblogged this on Open Fecks.
August 22, 2014 at 12:51 pm |
[…] en: Michael Vogt’s Blog, OMG! […]
November 16, 2014 at 3:23 pm |
[…] 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 […]
November 19, 2014 at 10:02 pm |
[…] 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 […]
July 4, 2015 at 3:45 pm |
[…] Michael Vogt’s blog To know about these and more, open terminal and execute the following: man apt Using manpages is a […]
January 28, 2016 at 7:48 am |
[…] Per maggiori informazioni su APT 1.0 consiglio di consultare il post dedicato rilasciato da Michael Vogt. […]
March 5, 2016 at 7:51 pm |
Well who gave you that idea? 😉
March 6, 2016 at 3:06 am |
[…] Apt 1.0 […]
March 11, 2016 at 6:10 am |
[…] apt 1.0 […]
March 15, 2016 at 11:18 am |
[…] apt 1.0 […]
March 19, 2016 at 9:52 am |
[…] Vorstellung von apt im Blog von Michael Vogt […]
April 21, 2016 at 1:08 pm |
[…] 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). […]
June 12, 2016 at 6:17 am |
ubuntu play store released
http://www.ktechpit.com/ubuntu/ubuntu-play-store-version-3-0-released-adds-paypal-integration/
December 23, 2016 at 12:26 pm |
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.
December 23, 2016 at 12:27 pm |
See http://manpages.ubuntu.com/manpages/wily/en/man8/apt.8.html for $ apt upgrade
and http://manpages.ubuntu.com/manpages/wily/en/man8/apt-get.8.html for $ apt-get dist-upgrade
April 1, 2017 at 5:46 pm |
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?
July 22, 2017 at 3:06 pm |
[…] https://mvogt.wordpress.com/2014/04/04/apt-1-0/ […]
February 28, 2018 at 9:56 am |
[…] https://mvogt.wordpress.com/2014/04/04/apt-1-0/ […]
July 5, 2020 at 6:51 am |
[…] A synopsis of the above link (with corrections*): […]
November 9, 2021 at 12:24 pm |
[…] Vogt’s blogpost on apt […]
November 30, 2021 at 11:45 am |
[…] A synopsis of the above link (with corrections*): […]
December 25, 2021 at 4:31 pm |
[…] https://mvogt.wordpress.com/2014/04/04/apt-1-0/ […]
March 8, 2023 at 7:40 pm |
[…] 1999, and it has been a slow-moving and pretty stable project ever since. It took 15 years to reach version 1.0released on April Fool’s Day in 2014. APT 1.0 was also the version where the apt command first […]
March 8, 2023 at 7:44 pm |
[…] 1999, and it has been a slow-moving and pretty stable project ever since. It took 15 years to reach version 1.0, released on April Fool’s Day in 2014. APT 1.0 was also the version where the apt command […]
March 8, 2023 at 8:24 pm |
[…] रही है। पहुंचने में 15 साल लग गए संस्करण 1.02014 में अप्रैल फूल डे पर रिलीज़ किया […]
March 8, 2023 at 8:28 pm |
[…] 1999, and it has been a slow-moving and pretty stable project ever since. It took 15 years to reach version 1.0released on April Fool’s Day in 2014. APT 1.0 was also the version where the apt command first […]
March 8, 2023 at 8:44 pm |
[…] en 1999, y desde entonces ha sido un proyecto lento y bastante estable. Tardó 15 años en llegar versión 1.0lanzado el Día de los Inocentes en 2014. APT 1.0 también fue la versión donde el apt apareció […]
March 8, 2023 at 8:52 pm |
[…] Slink en 1999, et c’est un projet lent et assez stable depuis. Il a fallu 15 ans pour arriver version 1.0sorti le jour du poisson d’avril en 2014. APT 1.0 était également la version où le apt la […]
March 8, 2023 at 8:58 pm |
[…] 届くまで15年かかった バージョン 1.0、2014 年のエイプリルフールにリリースされました。APT 1.0 は、 apt […]
March 9, 2023 at 3:26 am |
[…] 1999, and it has been a slow-moving and pretty stable project ever since. It took 15 years to reach version 1.0, released on April Fool’s Day in 2014. APT 1.0 was also the version where the apt command […]