How to install a package from a PPA and ignore the official one?

How do I tell aptitude to grab a package specifically from a PPA and ignore the one from official repository?


Solution 1:

If you like to do it only once, just manual downloading and installing may be best way.

But if you'd like to update regulary, try to use APT pinning to force specific repo, you can find more on https://help.ubuntu.com/community/PinningHowto#line-153

I've never used it for repo only to specify package version, so i'm not sure how to make it work this way.

Solution 2:

You can comment with # each official repo line, update aptitude, install, and uncomment these lines. Difficult, but works