Set the status of "purge" packages - dpkg --get-selections
On doing following on my Lenny system:
Code:
dpkg --get-selections > packages.txt Code:
................ Also the packages that are shown as "deinstall" are removed on my system. How do I remove these packages from the listing. How do I set the status of those packages (which are shown as "pruge") back to "install" again? I am fine with not removing them. I use apt-get as my package manager. |
Sorry folks. I think I found the answer to this one. If anybody wants to know just let me know and I will post it.
Thanks |
I'd be interested in the solution.
|
That listing is used if you wish to setup an identical system as far as packages go.
Packages that are installed by default in the system will be listed as purged or de-install so the new system you transfer this package list to will know that is what it is supposed to do with those packages Original System Code:
dpkg --get-selections > packages.txt Code:
dpkg --set-selections < packages.txt |
Thanks Farslayer.
Is it possible to use the apt-get dselect-upgrade command with aptitude instead?.Or does it not matter in this case. Regards. The trooper. |
I don't believe aptitude is aware of the dselect-upgrade option. This means packages wont get flagged as automatically installed by Aptitude.
Since this is typically the fist thing you would do on a system if you were going for an identical packages selection, I would probably just do the apt-get dselect-upgrade then follow it up with aptitude keep-all, and use aptitude from that point forward. Sure wish I could find a more recent reference for that info.. |
Quote:
Will make a note of this. |
Ooops...Sorry for the delay....Looks like farslayer has posted the solution already. Thank you.
|
All times are GMT -5. The time now is 07:59 AM. |