If it's an official Ubuntu repo you've enable to get something, like I did with JDK, I've found it easiest to simply get what I want then disable the repo altogether or to cherry pick what I want from Launchpad. A repo of such size would be impossible to regulate in any meaningful way as far as I know. On Debian, which I have not extensively used, I believe that would be the safest thing. Using Mint 10 I've had no problems with Maverick packages, however, I've only briefly used LMDE, so things could be a bit different. I'm also not sure if Debian used apt or Aptitude. If it uses apt, this is how to go about it.
The easiest way to hold packages system-wide is through the use of apt and the command line. (I know of no other convenient way.)
By using the command "sudo apt hold $PACKAGE," you will in effect keep Mint Update, Synaptic, and presumably any other program that relies on apt from attempting to upgrade said packages.
So, here's an example. Let's say you have a repository enabled that has package A ($PA) and package B ($PB). You only want $PA, but would like to keep $PB as it is.
To do this you would type this into a terminal:
- Code: Select all
sudo apt hold $PB
$PB must be the full package name. The version number does not matter, whatever version is currently installed will be the one held. The package name is not (usually) the name found in the menu, but as found in Synaptic or Mint Update.
Now when you update through Synaptic, Mint Update, or apt using the cmd line, whatever packages you've held will not be updated.
To see your held packages tpye this into a terminal:
- Code: Select all
apt held
To unhold a package type this into a terminal:
- Code: Select all
sudo apt unhold $PACKAGE
Unfortunately you have to do hold and unhold one at a time.
The caveat to this is that it does not allow any updates at all. I assume what you REALLY want is to be able to still get the "official" updates for a package while blocking the PPA's update. As far as I know this is not possible. I wish it were, and if anyone knows how to accomplish such a thing please let me know!
An entirely different approach to this problem is to update directly from the web, avoiding PPA installation altogether. I actually have a few rather large bookmark folders dedicated to this. One is called "Launchpad" and the other "Watches." Even if you do use a PPA, it is wise to know exactly where it came from (Launchpad usually for Ubuntu stuff) in case a bug or some other problem arises. If you go to the PPA on Launchpad you can click the "View Package Details" link above the package list and find the .debs you are looking for and directly download them. This is very useful for those huge repositories in which you only want one or 2 things.
Aside from bookmarking you can also "watch" pages you find important with a Firefox addon like Alert Box to be notified when it changes or an automation app/addon which will open the page(s) automatically, say, once a week so you never forget to check up on them.
That's all I got! Good luck!
