You are not logged in.

#1 2016-06-27 11:14

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Adding package from backports

I have added a package from the backports repository ( ffmpeg ) and would like to keep the current version but I am being given an update icon (by pk-update-icon and experimental apt-updater) I have "locked" the version in synaptic which will prevent synaptic from installing the stable version, but the normal updater ( pk-update-icon & gpk-update-viewer ) will install the stable version over the top of the wanted version. Is there a way to prevent this from happening? I do not want to use packages from the backports repository as a general preference so cannot simply give backports a higher priority, but would like this package only to be installed and kept.

Thanks in advance for any suggestions.

Dai

Offline

#2 2016-06-27 11:45

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: Adding package from backports

It seems a simple

sudo apt-mark hold ffmpeg

will do the trick. smile

Offline

#3 2016-06-27 12:49

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Adding package from backports

Alternatively, you can create a pin to lock package version, for ex. libpulse0. Create file '/etc/apt/preferences.d/99-mypin' with content:

Package: libpulse0
Pin: version 5*
Pin-Priority: 999

It's possible to define exact package version or a 'wildcard' for ex. '5*' or '5.0.*', etc ..

Offline

#4 2016-06-27 15:34

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: Adding package from backports

Thanks guys, have created a pin file removed apt-hold and cancelled synaptic lock and all is working as it should. smile

Offline

Board footer

Powered by FluxBB