LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Preventing a Package from being Upgraded (http://www.linuxquestions.org/questions/ubuntu-63/preventing-a-package-from-being-upgraded-548999/)

neoAKiRAz 04-25-2007 06:03 PM

Preventing a Package from being Upgraded
 
Hi. I compiled ffmpeg with mp3 support, and this produced the following packages:

Code:

ffmpeg_0.cvs20060823-3.1ubuntu1_i386.deb
libavcodec0d_0.cvs20060823-3.1ubuntu1_i386.deb
libavcodec-dev_0.cvs20060823-3.1ubuntu1_i386.deb
libavformat0d_0.cvs20060823-3.1ubuntu1_i386.deb
libavformat-dev_0.cvs20060823-3.1ubuntu1_i386.deb
libpostproc0d_0.cvs20060823-3.1ubuntu1_i386.deb
libpostproc-dev_0.cvs20060823-3.1ubuntu1_i386.deb

I installed them and made ffmpeg work succesfully (at the 37th attempt...).
The problem is that now adept_updater offers me to upgrade libavcodec0d. The strange thing is that the candidate version is the same as the installed version as adept_updater reports.

I tried adding the following to /etc/apt/preferences:

Package: *
Pin: version 0.cvs20060823-3.1ubuntu1
Pin-Priority: 1001

With and without a '3:' before '0.cvs...' (which I'm not sure what it means) but it didn't work, it keeps asking me to upgrade.
The output to "apt-cache policy libavcodec0" is:

Code:

neoakiraz@fcksys:~/linux/paquetes/ffmpeg$ apt-cache policy libavcodec0d
libavcodec0d:
  Installed: 3:0.cvs20060823-3.1ubuntu1
  Candidate: 3:0.cvs20060823-3.1ubuntu1
  Version table:
    3:0.cvs20060823-3.1ubuntu1 0
        500 http://uy.archive.ubuntu.com edgy/universe Packages
 *** 3:0.cvs20060823-3.1ubuntu1 0
        100 /var/lib/dpkg/status
W: Did not understand pin type version

I haven't let it upgrade yet because I'm afraid to screw this up (don't want to go for 38th...), so I was looking for some advice. As you can see I just have a vague idea of what I'm doing, so if somebody can help me, it would be great. Greetz!

{BBI}Nexus{BBI} 04-25-2007 06:12 PM

A short and to the point answer: "If it ain't broke, don't fix it!" I hope that helps you to decide. :)

neoAKiRAz 04-25-2007 07:36 PM

Yes, that's why I don't want that package to be upgraded :) But is quite annoying that each time adept_updater finds updates for other components, I have to manually selecting "don't upgrade" to libavcodec0d... so my question was if there's any way I can't stop Kubuntu from offering me that. Is it?

{BBI}Nexus{BBI} 04-25-2007 07:51 PM

Quote:

Originally Posted by neoAKiRAz
Yes, that's why I don't want that package to be upgraded :) But is quite annoying that each time adept_updater finds updates for other components, I have to manually selecting "don't upgrade" to libavcodec0d... so my question was if there's any way I can't stop Kubuntu from offering me that. Is it?

I'm not that familiar with how Kubuntu works, but I use a package manager called 'Smart Package Manager' and with that I can permanently select components that I don't want updating and it will remember that selection.


All times are GMT -5. The time now is 10:26 AM.