Wednesday·10·October·2007
Group packages by origin in aptitude //at 02:00 //by abe
I always wondered how others recognise non-Debian packages in the aptitude package tree. I also missed the additional priority level in the hierachy well-known from good old dselect.
For the last one, I quickly found out that you can set the priority as
subsection — it’s straight forward after you’ve read the
documentation: Just add ,priority at the end of the
default grouping method for package views under “Options → UI
Options” in the aptitude menu.
Getting the origin as given in the Release file of the repository a
package originates from is a little bit more difficult. You need to
use the pattern() group function with the appropriate
search pattern: pattern(~O)
Since already the default default grouping method for package views
doesn’t fit into the dialog, I nowadays just edit /etc/apt/apt.conf directly for changes on
aptitude’s default grouping method for package views. It now looks
like this on several of my machines:
Aptitude::UI {
Default-Grouping "filter(missing),status,section(subdir,passthrough),pattern(~O),section(topdir),priority";
};
In aptitude this looks like this:
[...]
--- text - Text processing utilities
--\ utils - Various system utilities
--- Debian
--- Mowgli
--- volatile.debian.org
--\ web - Web browsers, servers, proxies, and other tools
--- Debian
--- Opera Software ASA
--\ x11 - The X window system and related software
--\ Debian
--- contrib - Programs which depend on software not in Debian
--\ main - The main Debian archive
--- Priority optional
--- Priority extra
--- non-free - Programs which are not free software
--- Mowgli
[...]
Unfortunately this doesn’t work with all non-Debian repositories since a few repository maintainer, e.g. those from Emdebian, arrogate to just keep “Debian” as their packages’ origin. This could be solved, if there’s a possibility to group by e.g. repository URL (host and/or path).
Another problem I haven’t solved yet is that grouping by origin does neither work with locally created nor virtual packages nor tasks — probably since all of them lack an origin. Those branches are just empty or don’t even show up anymore with this configuration. I probably have to dig a little bit more in the aptitude documentation to resolve this.
Now playing: E-Rotic — Max don’t have sex with your ex
Tagged as: aptitude, Debian, Emdebian, Etch, Mowgli, Now Playing, Opera, Sid, Text Mode
2 comments // write a comment // comments off
Related stories
Comments
Re: Group packages by origin in aptitude
Posted by: Simon Ward Website: http://bleah.co.uk/blog/posts/group_by_origin_in_aptitude/ Time: Fri, 12 Oct 2007 21:03 pattern(~O, !~O => other) seems to solve the problem of virtual packages, etc not showing for me.
Your Comment
Spam Protection: To post a comment, you'll have to answer the following question: What is 23 plus 19?





Re: Group packages by origin in aptitude
Another problem: many repositories, such as Christian Marillat's debian-multimedia repository, don't bother to properly segregate packages into main, contrib, and non-free.
Reply