Author Topic: How to pin a package in Synaptic.  (Read 10866 times)

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12520
How to pin a package in Synaptic.
« on: July 13, 2009, 04: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.

Thanks to everyone who donates. You keep the servers running.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11589
  • ----IOFLU----
Re: How to pin a package in Synaptic.
« Reply #1 on: September 19, 2009, 05: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.
Old-Polack

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



Lest we forget...

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: How to pin a package in Synaptic.
« Reply #2 on: September 19, 2009, 06: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
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11589
  • ----IOFLU----
Re: How to pin a package in Synaptic.
« Reply #3 on: September 19, 2009, 08: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. ;)
Old-Polack

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



Lest we forget...

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: How to pin a package in Synaptic.
« Reply #4 on: October 12, 2009, 07:10:26 PM »
Anyway of pinning Tex?

Have a great evening!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to pin a package in Synaptic.
« Reply #5 on: October 29, 2009, 07:22:18 AM »
Hi,

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

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online stealth

  • Hero Member
  • *****
  • Posts: 643
Re: How to pin a package in Synaptic.
« Reply #6 on: November 08, 2009, 12: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.

Offline TheQuest

  • Full Member
  • ***
  • Posts: 148
Re: How to pin a package in Synaptic.
« Reply #7 on: December 14, 2009, 01: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  ;) [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 8)
When Nothing is Certain, Anything is Possible.

couponmole

  • Guest
Re: How to pin a package in Synaptic.
« Reply #8 on: March 20, 2010, 03:26:35 PM »
Was searching this.  Glad I found it

Offline marcin82

  • Full Member
  • ***
  • Posts: 128
  • Jest wirek - jest impreza ;]
Re: How to pin a package in Synaptic.
« Reply #9 on: July 09, 2010, 03: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: [Select]
/etc/apt/apt.confFor 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: [Select]
RPM::Ignore {audacious}
RPM::Ignore {audacious-plugins}
Now, file /etc/apt/apt.conf looks like this:
Code: [Select]
APT::Get::Show-Upgraded "true";
APT::Get::Reinstall "true";
RPM::Ignore {audacious}
RPM::Ignore {audacious-plugins}

It works, that's all  :)
marcin'82

genomega

  • Guest
Re: How to pin a package in Synaptic.
« Reply #10 on: July 09, 2010, 10: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

Offline Jag

  • Full Member
  • ***
  • Posts: 78
Re: How to pin a package in Synaptic.
« Reply #11 on: August 09, 2010, 12: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: [Select]
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: [Select]
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.
-J.L.Deshpande.
Registered Linux User #492893

Offline aguila

  • Hero Member
  • *****
  • Posts: 1210
  • soaring high = no Windows here :-D
Re: How to pin a package in Synaptic.
« Reply #12 on: January 04, 2011, 02: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)?
All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, Plextor PX-256M3 256 GB SSD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD

Offline marcopl

  • Full Member
  • ***
  • Posts: 145
Re: How to pin a package in Synaptic.
« Reply #13 on: January 08, 2011, 10:05:11 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: [Select]
/etc/apt/apt.confFor 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: [Select]
RPM::Ignore {audacious}
RPM::Ignore {audacious-plugins}
Now, file /etc/apt/apt.conf looks like this:
Code: [Select]
APT::Get::Show-Upgraded "true";
APT::Get::Reinstall "true";
RPM::Ignore {audacious}
RPM::Ignore {audacious-plugins}


good tip. thanx.

Offline anbraca

  • Jr. Member
  • **
  • Posts: 48
  • ok
Re: How to pin a package in Synaptic.
« Reply #14 on: January 17, 2011, 12: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
pclos 2010 firefox, clamav,,amd phenom 8450,3gb ram,640 gb hd,nivida geforce 8200