The Caboteria / Tech Web / DebianPackages (08 Nov 2014, TobyCabot)
(other DebianTips)

I once had a problem where apt-get and dselect started seg-faulting when they were "Building Dependency Tree". Moving /var/cache/apt/pkgcache.bin and /var/cache/apt/pkgcache.bin to /tmp (i.e. getting rid of them) seemed to fix things.

Build a package from source? See the FAQ:

How to run woody but with some packages from sid:

For all those that are using Woody but would like to sometimes run a few
packages from Sid, this fix works like a charm.  I couldn't find the
specifics documented anywhere, but I felt others would like to know
about it.


Package: *
Pin: release a=unstable
Pin-Priority: 50


deb unstable main contrib non-free

What will these lines do?  Pinning the priority of unstable to 50 makes
it so that these packages are never automatically selected for upgrade.
The sources.list line is needed so that packages that are not in woody
are installed with `apt-get evolution` (for example).  Dependencies are
handled correctly and the system remains on Woody packages with the
exceptions of the explicitly loaded ones.


apt-show-versions is a script which eases maintenance of mixed
stable/testing or testing/unstable systems. While beeing able to
update the packages from your *main* distribution with apt-get upgrade
it is quite difficult to do the same for the *not-main*
packages. While you can use the pinning feature of apt if these are
only a few it is quite annoying to put all the package names in
apt/preferences which should be pinned. Like in one of my installation
where I have 247 packages from stable and 229 from testing.


  apt-show-versions | fgrep /testing | wc

to see how many packages you have from testing or

  apt-show-versions -u

to see a list of packages which are upgradeable either to stable or
testing or unstable or

  apt-get install `apt-show-versions -u -b | fgrep unstable`

to upgrade all unstable packages to their newest versions.

Another approach to the same thing:

From: Jens Hoffrichter 
Date: Wed, 23 Jan 2002 22:37:42 +0100
To: Martin Schulze 
Subject: Re: Debian Weekly News - January 23rd, 2002

This can be done even more comfortable by using the -t switch to
apt-get, which will even satisfy dependencies to unstable, what the
use of packagename/unstable does not do.

The correct (and frequently used by myself ;)) ) call would be:

apt-get -t unstable install 

List installed packages by size:

dpkg-awk "Status: .* installed$" -- Package Installed-Size| awk '{print $2}' | egrep -v '^$' | xargs -n2 echo | perl -pe 's/(\S+)\s(\S+)/$2 $1/' | sort -rg

Upgrade Debian:

sudo apt-get update && \
sudo apt-get install apt dpkg gnupg gnupg2 locales && \
sudo apt-get --purge dist-upgrade && \
sudo apt-get --fix-policy install && \
sudo apt-get --purge autoremove $(deborphan --guess-all)

The last line is useful for getting rid of unneeded packages anytime, not just after an upgrade.

Edit | Attach | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Copyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria? Send feedback