Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

apt 1.0

Here you can discuss every aspect of Debian. Note: not for support requests!
Message
Author
User avatar
michapma
Posts: 544
Joined: 2008-05-04 20:49
Location: Prague

apt 1.0

#1 Post by michapma »

I noticed when running a dist-upgrade on Sid yesterday that the package apt finally hit 1.0!

From the changelog:
apt (1.0) unstable; urgency=low

The "Happy birthday and 10000b years in the making" release

[ Julian Andres Klode ]
* apt-inst: Do not try to create a substring of an empty string in
error reporting (LP: #1288718)

[ Beatrice Torracca ]
* Italian manpages translation update (Closes: 741867)

[ Kenshi Muto ]
* Japanese programs translation update (Closes: 742255)

[ David Kalnischkies ]
* continue reading in xz even if it outputs nothing
* only consider versioned kernel packages in autoremove (Closes: 741962)
* correct some reported typos in /etc/cron.daily/apt (Closes: 702016)
* ensure proper teardown in dpkg error cases (Closes: 738969)
* update symbols file to include new symbols from 0.9.16
* do IsInstallOk call in MarkInstall unconditionally
* discard candidates via IsInstallOk to allow override (Closes: 740750)

[ Michael Vogt ]
* install apt binary
* add apt.8.xml manpage
* make fancy-progress fg/bg color configurable via something like
Dpkg::Progress-Fancy::Progress-{bg,fg}="%1b[30m"
(thanks to Tim Wasser for the suggestion)
* Add progressbar to "Dpkg::Progress-Fancy"
* fix documentation for APT::Periodic::MaxSize "0" (closes: #740551)
* Use mkstemp() in apt-extracttemplaes (closes: #741627)
* Add new Debug::RunScripts debug option
* do not crash on SIGPIPE in pkgDPkgPM::RunScriptsWithPkgs()
* enable DPkg::Progress-Fancy by default when "apt" is used
* refresh po/pot and unfuzzy apt-extracttemplate manpage change
* remove no longer needed apt.7 page
* install "apt" binary by default
* add sun-java{5,6}-jdk to breaks/replaces as they provided a
"apt" binary as well

[ Trần Ngọc Quân ]
* l10n: vi.po (623t): Update Vietnamese translation
* debian: Add default compress option to xz

-- Michael Vogt <mvo@debian.org> Tue, 01 Apr 2014 15:48:46 +0200
Anyone wanna organize a party? :D

dbass81
Posts: 13
Joined: 2014-03-27 15:26

Re: apt 1.0

#2 Post by dbass81 »

michapma wrote:Anyone wanna organize a party? :D
I can't help you there, but APT is the best!

confuseling
Posts: 2121
Joined: 2009-10-21 01:03

Re: apt 1.0

#3 Post by confuseling »

[must... resist urge... to say disparaging things... about Firefox]

Congratulations apt. 10000 today, and looking good for it. :)
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here

Debian4ever
Posts: 150
Joined: 2013-10-19 22:06

Re: apt 1.0

#4 Post by Debian4ever »

Long live apt, without it I would not be using linux today.
Now has it been surpassed? Yes as I find zypper on openSUSE better or even Pacman on arch but my roots in linux was planted by apt and the Debian infrastructure.

confuseling
Posts: 2121
Joined: 2009-10-21 01:03

Re: apt 1.0

#5 Post by confuseling »

Package managers is 'one of those Holy wars' where you'll never find agreement.

But out of curiosity, what do you prefer about Zypper and Pacman?

The major issue with Apt I see is the fragmentation (too many different tools... makes no difference once you know what they're called, but it's not useful for new users).

There are a few other 'nice to haves' missing, like specifying backup mirrors, and concurrent installation of different versions à la Nix (particularly booting into the upgraded environment without overwriting the old one... But it's a matter of debate I think whether that should be handled by the package manager or the filesystem).

I'm sure they'll appear eventually, and I don't think either Zypper or Pacman does them.
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: apt 1.0

#6 Post by vbrummond »

I like yum the best so far. It has a few features such as undoing operations, automatically changing mirrors when one is down or slow, fully working multi-arch support. The new version of yum in development uses the same libsolv as zypper, so it should be faster and still have the same features.

Right now the only problem I have with apt in general is multi-arch support. Most packages work fine but some just error with dependencies when I try to install them. Aptitude I don't like the resolver, more often than not it just gives you sub-optimial choices. For example, when I try to install something, aptitude will ask me to remove 100 packages, then 200, and so on. Apt-get will usually install them just fine. Though on rare corner cases aptitude lets me fix something apt-get won't.

It's all good though.
Always on Debian Testing

confuseling
Posts: 2121
Joined: 2009-10-21 01:03

Re: apt 1.0

#7 Post by confuseling »

With aptitude you often need to explicitly reject the things you don't want it to do. In the visual interface you just select the thing it's going to remove and hit 'r', or if it suggests doing something and you definitely want it done you can hit 'a' for accept.

Normally converges on a sensible solution in a couple of attempts, and it can definitely think its way through difficulties which stump apt-get completely... though I freely admit its first suggestions are often slightly odd.

Zypper, AFAIK, has a mathematically proven solver - if there is a solution, it'll find it.
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here

emariz
Posts: 2901
Joined: 2008-10-17 07:59

Re: apt 1.0

#8 Post by emariz »

I never actually learnt how to use Apt-Get, but one can only be happy when a core Debian tool reaches version 1.0.
I finally need to leave Squeeze+Backports in a couple of weeks, and will try this new Apt.
Last edited by emariz on 2014-04-06 05:04, edited 1 time in total.

Debian4ever
Posts: 150
Joined: 2013-10-19 22:06

Re: apt 1.0

#9 Post by Debian4ever »

confuseling wrote:Package managers is 'one of those Holy wars' where you'll never find agreement.

But out of curiosity, what do you prefer about Zypper and Pacman?

The major issue with Apt I see is the fragmentation (too many different tools... makes no difference once you know what they're called, but it's not useful for new users).

There are a few other 'nice to haves' missing, like specifying backup mirrors, and concurrent installation of different versions à la Nix (particularly booting into the upgraded environment without overwriting the old one... But it's a matter of debate I think whether that should be handled by the package manager or the filesystem).

I'm sure they'll appear eventually, and I don't think either Zypper or Pacman does them.
The parts of zypper and pacman I find superior is the command line implementation and what you need to type in.
Example:

apt-get --install (packagename)

zypper install (packagename)

pacman -S (packagename)

sure zypper has just about the same amount to type as apt but the syntax is simpler to remember.
pacman beats the pants of both though i'm afraid.

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: apt 1.0

#10 Post by vbrummond »

Aptitude has a safe resolver, which instead of conflicting in most cases just fails to install anything. :)
Always on Debian Testing

confuseling
Posts: 2121
Joined: 2009-10-21 01:03

Re: apt 1.0

#11 Post by confuseling »

Debian4ever wrote:...
apt-get --install (packagename)
...
Well, the -- was never necessary. And the -get won't be necessary either once you're running 1.0.

Good enough?
vbrummond wrote:Aptitude has a safe resolver, which instead of conflicting in most cases just fails to install anything. :)
You could just not run it safe-, which I think is probably only intended to be used for scripts... :wink:

One other bugbear I'll mention is interrupting installation for user input. FreeBSD's portmaster, for example, gets this right - it works out what it needs to ask you, asks you everything at once, then does everything. Obviously there are technical hurdles to fixing this, but it is possible.
Last edited by confuseling on 2014-04-16 13:38, edited 1 time in total.
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: apt 1.0

#12 Post by llivv »

vbrummond wrote:Aptitude has a safe resolver, which instead of conflicting in most cases just fails to install anything. :)
That may not be appealing to you but it is safe, no?
I hope I'm not beating a dead horse here.

I use aptitude on a daily basis and I can still learn new features usually by reading the docs.
I use apt too. It has features aptitude lacks. Source is one example.
I use dpkg when needed as well, but we wouldn't get into that unless someone else has
a burning desire to.

And because this wouldn't fit nicely anywhere else:
I wishlist
gimp didn't bring webkit gconf gstreamer and dconf with it. 8)
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

alderaan
Posts: 90
Joined: 2013-07-25 20:20

Re: apt 1.0

#13 Post by alderaan »

emariz wrote:I never actually learnt how to use Apt-Get, but one can only be happy when a core Debian tool reaches version 1.0.
I finally need to leave Squeeze+Backports in a couple of weeks, and will try this new Apt.
Just to make sure: as already mentioned from the OP the 1.0 version is available only in Sid (Unstable) at the moment. You are using Squeeze which is 3 steps of "apt-get dist-upgrade" away from Sid: Oldstable (Squeezy) --> Stable (Wheezy) --> Testing (Jessie) --> Unstable (Sid)

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: apt 1.0

#14 Post by llivv »

emariz wrote:I never actually learnt how to use Apt-Get, but one can only be happy when a core Debian tool reaches version 1.0.
I finally need to leave Squeeze+Backports in a couple of weeks, and will try this new Apt.
1.0 :D
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: apt 1.0

#15 Post by edbarx »

Judging from apt's performance I was of the impression that it was more than version 1.0.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

confuseling
Posts: 2121
Joined: 2009-10-21 01:03

Re: apt 1.0

#16 Post by confuseling »

So efficient!

Code: Select all

root@stirfry:~# apt remove less
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  linux-image-3.11-2-amd64
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  less
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 295 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 534764 files and directories currently installed.)
Removing less (458-2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for mime-support (3.54) ...
Farewell '-get'. You have served us well, but frankly, you won't be missed.

Glorious technicolour too (you'll have to take my word for it).
man apt wrote: edit-sources
edit-sources lets you edit your sources.list file and provides basic sanity checks.
I guess that's a bit like visudo. Doesn't seem to cope with /etc/apt/sources.list.d, but still a good idea...
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here

User avatar
Pick2
Posts: 790
Joined: 2007-07-07 13:31
Location: Decatur Il

Re: apt 1.0

#17 Post by Pick2 »

Have you tried the the latest and greatest APT 1.0.1 ?

http://packages.qa.debian.org/a/apt.html

I just installed stable on my newest rig , maybe I should switch it to testing to get that 1.0.1 goodness ?
Last edited by Pick2 on 2014-04-16 15:02, edited 1 time in total.

Randicus
Posts: 2663
Joined: 2011-05-08 09:11

Re: apt 1.0

#18 Post by Randicus »

No need. Just do what so many others are doing. Add Testing to your sources.list, install the newer version of APT, and enjoy your "mixed" Stable-Testing system. :lol: If you want a really exotic set-up, also add Unstable, Experimental, Ubuntu, Mint and Kali. APT will work even better. :lol:

confuseling
Posts: 2121
Joined: 2009-10-21 01:03

Re: apt 1.0

#19 Post by confuseling »

Well, I can't say it's been a particularly wild ride so far...

I uninstalled less. Then I installed it again. So far, it has remained reinstalled.

I'll post back if the situation develops. :shock:
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here

User avatar
Pick2
Posts: 790
Joined: 2007-07-07 13:31
Location: Decatur Il

Re: apt 1.0

#20 Post by Pick2 »

Randicus wrote:No need. Just do what so many others are doing. Add Testing to your sources.list, install the newer version of APT, and enjoy your "mixed" Stable-Testing system. :lol: If you want a really exotic set-up, also add Unstable, Experimental, Ubuntu, Mint and Kali. APT will work even better. :lol:
Way to much work. :)

I prefer to set my browser string to "Internet Explorer / Windows ME" , bounce around the internet to random sites and let Them install the software they think I need. :lol:

Post Reply