Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using Ubuntu 10.04 LTS on my server and want to install netatalk 2.2. There is a version available in the PPA of Stefano Rivera.

Now it happens that I've also got smartmontools installed for which he supplies a new version as well, but I'd really like to only upgrade netatalk.

I've tried adding the file /etc/apt/preferences.d/stefanor:

Package: *
Pin: o=LP-PPA-stefanor
Pin-Priority: 50

but this hasn't changed anything.

How can I depriorize a repository and install just one piece of software from it?

share|improve this question

2 Answers 2

Can I suggest you ppa-purge the PPA you want to default the software version back to the default lucid repository version.

Next, re-edit your software-sources (sudo nano /etc/apt/sources.list) and remove the # from the PPA line-entry.

Run just an update - NOT an upgrade.

sudo apt-get update

Install the software you want.

sudo apt-get install [software package]

Then re-open source-sources file and readd the # to the PPA so that no further updates are received.

For lucid, you can install ppa-purge by enabling the backports repository - again - do this from your software-sources file.

share|improve this answer
    
That seems like a crude workaround, with this setup it's impossible to automatically receive updates. –  Georg Schölly Oct 20 '11 at 19:28

You may try:

Pin: release o=LP-PPA-stefanor

and check the priority by "apt-cache policy [package]"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.