PCLinuxOS-Forums
News: Wishing everyone a Happy 2012
 
*
Welcome, Guest. Please login or register. February 13, 2012, 01:28:15 AM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: How to pin a package in Synaptic.  (Read 7349 times)
Texstar
Administrator
Super Villain
*****
Offline Offline

Posts: 11861



« on: July 13, 2009, 05:36:28 AM »

If you have an installed app and for whatever reason you don't want Synaptic to ever upgrade it with a new version. Here is how you do it.

Create a text file called preferences and add the following as an example:

Package: e2fsprogs
Pin: version 1.40.2-1pclos*
Pin-Priority: 1001

Package: libext2fs2
Pin: version 1.40.2-1pclos*
Pin-Priority: 1001

Save the file and copy it into the /etc/apt folder. Now Synaptic will forever ignore it when doing updates.
Logged

Follow the development of PCLinuxOS on Twitter
Help fund the PCLinuxOS project!

"I'm not so good on advice, can I interest you in a sarcastic reply?"
Old-Polack
Administrator
Hero Member
*****
Online Online

Posts: 9067


----IOFLU----


« Reply #1 on: September 19, 2009, 06:36:09 AM »

Old-Polack - great idea to pin it!

Andy

I few people are having problems with new packages, where the old ones worked. If they get the older package and it cures their problem with their hardware, they might as well be able to find this easily, rather than dig for it.
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
margarita
Sr. Member
****
Offline Offline

Posts: 429


Margarita is a place, not my name


« Reply #2 on: September 19, 2009, 07:43:08 AM »

Quote
I few people are having problems with new packages, where the old ones worked.
If we determine that a package causes problems, it is too late. We have always only the latest packages in the repositories.

Quote
If they get the older package and ...
Then we need in the repositories, the last and the penultimate version.


saludos
Logged

2.6.38.8-pclos3.pae.bsf - KDE: 4.6.5 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 4 GB - GForce 8400 GS
Old-Polack
Administrator
Hero Member
*****
Online Online

Posts: 9067


----IOFLU----


« Reply #3 on: September 19, 2009, 09:33:05 AM »

Quote
I few people are having problems with new packages, where the old ones worked.
If we determine that a package causes problems, it is too late. We have always only the latest packages in the repositories.

Quote
If they get the older package and ...
Then we need in the repositories, the last and the penultimate version.


saludos

The good thing about bad servers is that they don't upgrade in sync with the others, thereby giving a user a chance to find the old package that worked, install it, then pin it. Wink
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
frazelle09
Hero Member
*****
Online Online

Posts: 1203


Open my what?


WWW
« Reply #4 on: October 12, 2009, 08:10:26 PM »

Anyway of pinning Tex?

Have a great evening!  Smiley
Logged

"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."

melodie
Hero Member
*****
Offline Offline

Posts: 5673


XMMP=Jabber, free instant messaging protocol !


WWW
« Reply #5 on: October 29, 2009, 08:22:18 AM »

Hi,

This is nice. Is it possible to forbid a config file to be updated, too ?

Logged

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
stealth
Sr. Member
****
Offline Offline

Posts: 425


« Reply #6 on: November 08, 2009, 02:27:32 AM »

Quote
I few people are having problems with new packages, where the old ones worked.
If we determine that a package causes problems, it is too late. We have always only the latest packages in the repositories.

Quote
If they get the older package and ...
Then we need in the repositories, the last and the penultimate version.


saludos

Another way is if you have your own repo and you don't clean out the old rpms then you will have any version from the time you filled your repo up to the present version.
Logged
TheQuest
Full Member
***
Offline Offline

Posts: 145


« Reply #7 on: December 14, 2009, 03:40:56 PM »

Hi Texstar

Please can you help with this.

How would I pin Thunderbird .2.0.0.23  [history name::-  mozilla-thunderbird (2.0.0.23-1pclos2009) to 2.0.0.23-4pclos2010] so that it does not update,

The reason is because after the update to Thunderbird 3, for some reason it keeps asking me to Please enter the master password for the Software Security Device, I have never used a Master Password in thunderbird.

After trying four reinstatement's  with my last remaster  [just as well I do one every four weeks  Wink [dated 17 Nov 09]] and re-updating  since then 162MB x4 still keeps asking  for the mystery password.

I only use a Master Password in Firefox because many different forums I use, and use a different password  with and each forum.

Thanks you in advance for any time you can give to help me with this.

Take Care
TheQuest Cool
Logged

When Nothing is Certain, Anything is Possible.
couponmole
Guest
« Reply #8 on: March 20, 2010, 04:26:35 PM »

Was searching this.  Glad I found it
Logged
marcin82
Full Member
***
Offline Offline

Posts: 95


Metal is forever! // Yoda Królem Polski!


« Reply #9 on: July 09, 2010, 04:06:48 AM »

Hello, I'm a new user of the forum.
There is one more way to hold packages upgrade. All to do this we must edit file:
Code:
/etc/apt/apt.conf
For example; if I don't want to upgrade Audacious and hold it's 1.3.2 version I add to the above file two lines:
Code:
RPM::Ignore {audacious}
RPM::Ignore {audacious-plugins}
Now, file /etc/apt/apt.conf looks like this:
Code:
APT::Get::Show-Upgraded "true";
APT::Get::Reinstall "true";
RPM::Ignore {audacious}
RPM::Ignore {audacious-plugins}

It works, that's all  Smiley
Logged

marcin82
genomega
Sr. Member
****
Offline Offline

Posts: 329


WWW
« Reply #10 on: July 09, 2010, 11:05:05 PM »

Quote
The reason is because after the update to Thunderbird 3, for some reason it keeps asking me to Please enter the master password for the Software Security Device, I have never used a Master Password in thunderbird.



http://support.mozillamessaging.com/en-US/kb/Master+password+requested+but+not+set
Logged
Jag
Full Member
***
Offline Offline

Posts: 78


« Reply #11 on: August 09, 2010, 01:38:41 PM »

If you have an installed app and for whatever reason you don't want Synaptic to ever upgrade it with a new version. Here is how you do it.

Create a text file called preferences and add the following as an example:

Package: e2fsprogs
Pin: version 1.40.2-1pclos*
Pin-Priority: 1001

Package: libext2fs2
Pin: version 1.40.2-1pclos*
Pin-Priority: 1001

Save the file and copy it into the /etc/apt folder. Now Synaptic will forever ignore it when doing updates.


Total nOObs ,pl. note what I  learned in 2 hours......

Quote
1] Note the blank line [space] between details of two packages,if it is not there,then only last package will be ignored by synaptic.
2]Don't give extn '.txt'to the file i.e. create a text file without extension.
3] There is a space after ':' in every line and also after word 'version'.


My earlier 'mylivecd script' with which I made a remaster successfully was
Code:
mylivecd --nodir=^/home/<user1> --nodir=^/home/<user2> --nofile=^/var/cache/apt/archives/*.* pclos10kde20100807.iso


Now I am going to modify the script to exclude the file 'preferences' by adding
Code:
mylivecd --nodir=^/home/<user1> --nodir=^/home/<user2> --nofile=^/var/cache/apt/archives/*.* --nofile=^/etc/apt/preferences pclos10kde20100807.iso

 The persons installing with this remaster will be able to update the concerned packages.

Replace <user1> and <user2> in above scripts by the actual user names [ which means their home directories] you want to exclude.

I have ticked in syneptic to keep the downloaded packages at 'archives',hence the line '--nofile=^/var/cache/apt/archives/*.*' in the script.
Logged

-J.L.Deshpande.
Registered Linux User #492893
aguila
Hero Member
*****
Offline Offline

Posts: 802


soaring high = no Windows here :-D


« Reply #12 on: January 04, 2011, 04:20:16 PM »

Hi Tex,

What about dependencies?

E.g. if I wanted to upgrade Firefox but not Thunderbird, how to deal with the libs they depend upon?

Could I keep old KDE apps over a major upgrade without breaking something (the old or the new apps that depend on the same libs)?
Logged

All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, 160 GB HDD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD
marcopl
Full Member
***
Offline Offline

Posts: 146


« Reply #13 on: January 08, 2011, 12:05:11 PM »

Hello, I'm a new user of the forum.
There is one more way to hold packages upgrade. All to do this we must edit file:
Code:
/etc/apt/apt.conf
For example; if I don't want to upgrade Audacious and hold it's 1.3.2 version I add to the above file two lines:
Code:
RPM::Ignore {audacious}
RPM::Ignore {audacious-plugins}
Now, file /etc/apt/apt.conf looks like this:
Code:
APT::Get::Show-Upgraded "true";
APT::Get::Reinstall "true";
RPM::Ignore {audacious}
RPM::Ignore {audacious-plugins}


good tip. thanx.
Logged
anbraca
Jr. Member
**
Offline Offline

Posts: 48


ok


« Reply #14 on: January 17, 2011, 02:05:24 PM »

 i find that "pclos" is the only linux that loads my printer/scanner waithout any problems ,??? would any future updates  effect the normal running of my printer, many thanks
Logged

pclos 2010 firefox, clamav,,amd phenom 8450,3gb ram,640 gb hd,nivida geforce 8200
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM