Re: apt-get, upgrade, /var/cache/apt/archives
I also wonder if you still have a list of the selections held by
`dpkg' in that machine?
`dpkg --get-selections'
`dpkg --set-selections < dpkg-selections'
`apt-get dselect-upgrade'
>>>>> "Antonio" == Antonio Rodriguez <arodriguez@worldnet.att.net> writes:
Antonio> I haven't found any package called dpkg-scanpackages. I searched the deb
Antonio> site, can't find it. can you be more explicit?
Antonio> Thanks
% dpkg --search dpkg-scanpackages
diversion by dpkg-multicd from: /usr/bin/dpkg-scanpackages
diversion by dpkg-multicd to: /usr/bin/dpkg-scanpackages.dpkg
dpkg-dev, dpkg-multicd: /usr/bin/dpkg-scanpackages
dpkg-dev: /usr/share/man/man8/dpkg-scanpackages.8.gz
diversion by dpkg-multicd from: /usr/bin/dpkg-scanpackages
diversion by dpkg-multicd to: /usr/bin/dpkg-scanpackages.dpkg
diversion by dpkg-multicd from: /usr/man/man8/dpkg-scanpackages.8.gz
diversion by dpkg-multicd to: /usr/man/man8/dpkg-scanpackages.dpkg.8.gz
dpkg-multicd: /usr/man/man8/dpkg-scanpackages.8.gz
diversion by dpkg-multicd from: /usr/man/man8/dpkg-scanpackages.8.gz
diversion by dpkg-multicd to: /usr/man/man8/dpkg-scanpackages.dpkg.8.gz
Here's the script I run to update the Packages files in my partial
mirror. The mirror is in /home/ftp/pub/mirrors/debian, and this
script is run with it's PWD in /home/ftp/pub/mirrors. The
debian-non-US mirror is a sibling of the debian mirror.
#!/bin/sh
pushd debian
dpkg-scanpackages -m 'Debian GNU/Linux binary-i386' dists/potato/main/binary-i386 indices/override.potato.gz > dists/potato/main/binary-i386/Packages
dpkg-scanpackages -m 'Debian GNU/Linux binary-i386' dists/potato/contrib/binary-i386 indices/override.potato.contrib.gz > dists/potato/contrib/binary-i386/Packages
popd
pushd debian-non-US
dpkg-scanpackages -m 'Debian GNU/Linux binary-i386' dists/potato/non-US/main/binary-i386 indices-non-US/override.potato.gz > dists/potato/non-US/main/binary-i386/Packages
dpkg-scanpackages -m 'Debian GNU/Linux binary-i386' dists/potato/non-US/contrib/binary-i386 indices-non-US/override.potato.contrib.gz > dists/potato/non-US/contrib/binary-i386/Packages
popd
find . -name 'Packages' -exec gzip -f -9 \{\} \;
--
Those who do not study Lisp are doomed to reimplement it - Poorly.
A few months in the laboratory often saves several hours at the library.
mailto:karlheg@debian.org (Karl M. Hegbloom)
Reply to: