_(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: http://www.debian.org/doc/FAQ/ch-pkg_basics.html#s-sourcebuild How to run woody but with some packages from sid: <pre> 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. /etc/apt/preferences Package: * Pin: release a=unstable Pin-Priority: 50 /etc/apt/sources.list deb http://http.us.debian.org/debian 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. </pre> also: <pre> 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. Try 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. </pre> Another approach to the same thing: <pre> From: Jens Hoffrichter <joho@hausboot.org> Date: Wed, 23 Jan 2002 22:37:42 +0100 To: Martin Schulze <joey@infodrom.org> 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 <package> </pre> --- List installed packages by size: <pre>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 </pre> --- Upgrade Debian: http://q-funk.blogspot.com/2014/11/hel-has-just-frozen-over-wait-no-debian.html <pre> 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) </pre> The last line is useful for getting rid of unneeded packages anytime, not just after an upgrade.
This topic: Tech
>
DebianPackages
Topic revision: r7 - 08 Nov 2014 - TobyCabot
Copyright © 2008-2024 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