APT 1.0 released

Chat about Linux in general

APT 1.0 released

Postby Monsta on Sun Apr 06, 2014 12:45 pm

On the April 1st, without any joking, Debian developers released APT version 1.0.

One of the new features is the new apt binary:

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.


Some of you might be aware that Linux Mint already includes the convenient script also named apt that has the same goal: to provide simple access to various apt-related commands.
The difference is:

  • Mint's script resides in /usr/local/bin while Debian's apt binary is in /usr/bin. Since /usr/local/bin usually comes first in the $PATH, when you simply run "apt" in the terminal, Mint's script will be executed.
  • Mint's script has more options.
  • Mint's script uses not only apt-* tools (apt-cache, apt-get) but also aptitude.

News sources:
News article at Phoronix
The official release announcement at the mailing list
The announcement at Michael Vogt's blog
Monsta
Level 8
Level 8
 
Posts: 2322
Joined: Fri Aug 19, 2011 3:46 am

Linux Mint is funded by ads and donations.
 

Re: APT 1.0 released

Postby xenopeek on Sun Apr 06, 2014 3:47 pm

I'd see it pop up on my news feed, but hadn't read it yet. Looks handy, but as usual Linux Mint developers have already done something to patch the weirdness of needing apt-get/apt-cache/dpkg/aptitude for package management :)
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14510
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: APT 1.0 released

Postby killer de bug on Wed Apr 09, 2014 3:41 am

Monsta wrote:[*] upgrade: the same as apt-get dist-upgrade –with-new-pkgs.


I may be misreading this... but does it mean apt update is performing a dist-upgrade?


Monsta wrote:[*] full-upgrade: a more meaningful name for dist-upgrade.


Changing the name of a well-known command is not that clever. :lol:
If I have seen further it is by standing on the shoulders of giants. [Isaac Newton]
User avatar
killer de bug
Level 7
Level 7
 
Posts: 1544
Joined: Tue Jul 08, 2008 1:49 pm
Location: Austria

Re: APT 1.0 released

Postby killer de bug on Wed Apr 09, 2014 3:49 am

Ok I got an answer in Michael Vogt's blog:

The first is the new parameter “–with-new-pkgs” for the upgrade
command:

# apt-get upgrade --with-new-pkgs

that will install new dependencies on the upgrade but never remove
packages. A typical use-case is a stable system that gets a kernel
with a new kernel ABI package.


So it's no more an apt-get upgrade but it's not a dist-upgrade since it's unable to remove packages :lol:
If I have seen further it is by standing on the shoulders of giants. [Isaac Newton]
User avatar
killer de bug
Level 7
Level 7
 
Posts: 1544
Joined: Tue Jul 08, 2008 1:49 pm
Location: Austria


Return to Chat about Linux

Who is online

Users browsing this forum: DeMus and 7 guests