That partially worked. Problem is, it only installed those packages with 'Priority: required'. I suppose I can change all priorities to 'required', since I'll be restoring the original 'status' file - is there any good reason not to do that?
Mark. --- Mark Wright [EMAIL PROTECTED] [EMAIL PROTECTED] -----Original Message----- From: Marc Mongeon <[EMAIL PROTECTED]> To: debian-user@lists.debian.org <debian-user@lists.debian.org> Date: Monday, June 14, 1999 1:28 PM Subject: Re: Can I get the .deb files that I currently have installed. |Would this do it? | |# cd /var/lib/dpkg |# mv status status.tmp |# cat status.tmp | sed '/^Status:/s/installed/not-installed/' > status |# apt-get -d dist-upgrade |# mv status.tmp status | |Basically, this fakes apt-get into thinking that none of the packages |that should be installed are installed, then tells apt-get to get every |package in the distribution without installing it (-d means download |only). The .deb files should end up somewhere in /var/cache/apt, |I think. | |I didn't actually try this myself, but it looks believable. | |Marc | |---------- |Marc Mongeon <[EMAIL PROTECTED]> |Unix Specialist |Ban-Koe Systems |9100 W Bloomington Fwy |Bloomington, MN 55431-2200 |(612)888-0123, x417 | FAX: (612)888-3344 |---------- |"It's such a fine line between clever and stupid." | -- David St. Hubbins and Nigel Tufnel of "Spinal Tap" | | |>>> "Mark Wright" <[EMAIL PROTECTED]> 06/14 12:07 PM >>> |I want to be able to replicate my current Debian installation, by collecting |all of the .deb files that I currently have installed. 'dselect' deleted |all of the .deb's that it installed. I know how to get the names of the |installed packages (dpkg -l | awk '{print $2}'), but I can figure out how to |translate that into a filename that I can ftp from debian.org. When I look |in the /var/lib/dpkg/available file, the 'Filename:' field is missing for |all the installed packages. Is there some way to automatically collect all |the .deb's that match my current installation? | |Mark. |--- |Mark Wright |[EMAIL PROTECTED] |[EMAIL PROTECTED] | | | |-- |Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null | | | |-- |Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null | |