I'm running Peppermint OS Two and it uses natty packages. I want to introduce some oneiric packages. As I go along I backup my list of packages and /var/cache/apt/archives. The plan is if I install something that breaks I can diff the lists and get a list of offending packages. Is there a way through dpkg/apt/aptitude to remove packages by list?
|
|
|||
|
closed as off topic by fossfreedom♦, htorque, Takkat, Jorge Castro, RolandiXor♦ Jan 19 '12 at 22:11
Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
My advice is for you to first look for updated packages in backports. See Ubuntu wiki backports for details. If the package is not available in backports, my advice is to then use what is called "pinning" https://help.ubuntu.com/community/PinningHowto As long as it is only a few packages it might work, but if you install too much you might have breakage. |
|||
|
|
|
I don't really know that particular distro you have mentioned, and I also don't really know how you plan to install oneiric packages. If I consider you can deal with that, this could work. Let's say your list look like this (items separated by a space):
you can simply do
and the packages will be removed. |
|||
|
|
|
You can easily dump your current package selection with this command.
Then you could do your installs and export the file again and do a diff. This would leave you with only the newly installed packages. Simple to uninstall them at that point. |
|||
|
|