On Fri, 10 Jan 2003, Walter Tautz wrote:
> I am currently trying to sync up two machines, say A and B, > via the dpkg --get-selections (on A) > dpkg --set-selections (on B) method and running apt-get dselect-upgrade on B, > alas when I look at the output of dpkg --get-selections on B it does not say > to some of the packages in particular > > lprng install > is in the output of dpkg --get-selections on A but it still says > lpr install > on host B after running dpkg --set-selections on B > > Would it be better to sync > up the file /var/lib/dpkg/status ? I.e. can I use rsync or something? > > Walter Answer: 6.12 How do I put a package on hold? There are two ways of holding back packages, with dpkg, or with dselect. With dpkg, you just have to export the list of package selections, with: dpkg --get-selections \* > selections.txt The key point appears to be the need to use \* otherwise one does not see the package status of purge. I guess dpkg --get-selections only lists packages that are installed. This is not explicitly noted it would seem. The solution is part of http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html#s-puttingonhold > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]