LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-25-2015, 11:30 AM   #1
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Rep: Reputation: 31
How to pin only specific programs


Hi All,

I'm running Debian Jessie but want two programs from stretch:

packagekit

and

pk-update-icon

How can I use pinning to just download and install these two programs and track updates? These two programs are not available in Jessie.

Thanks

BTW here is my sources.list:


# deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 NETINST Binary-1 20150425-12:50]/ jessie main

#deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 NETINST Binary-1 20150425-12:50]/ jessie main

deb http://mirrors.kernel.org/debian/ jessie main contrib non-free
deb-src http://mirrors.kernel.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

# jessie-updates, previously known as 'volatile'
deb http://mirrors.kernel.org/debian/ jessie-updates main contrib non-free
deb-src http://mirrors.kernel.org/debian/ jessie-updates main contrib non-free

#Pinned Testing
deb http://mirrors.kernel.org/debian/ testing main contrib non-free
deb-src http://mirrors.kernel.org/debian/ testing main contrib non-free
 
Old 07-25-2015, 11:38 AM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
To the best of my knowledge there isn't any way to pin a single program in Debian. Undoubtedly those programs have dependencies as well that will need to be installed. So pinning just those two programs will not work anyway. Do you really need to stay on Jessie? You could always upgrade to Testing if you are pinning software from Stretch.

Another option is to build your own .deb packages for these pieces of software compiled against your current Debian Jessie system so that they do not require newer software versions of libraries or dependencies. Seems like a more plausible solution.
 
Old 07-25-2015, 01:55 PM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Sure you can apt-pin a package. You may have to satisfy a bunch of dependencies but that depends on which package you want to pin. In general it's a bad idea to use apt-pinning when you're running a stable (now called Jessie) release but it's quit OK to do if from Testing (now called Stretch) and get some Sid packages. Here's a simulation to show how it would be done (the -s option means it's a simulation).
Code:
:~$ apt-get -s -t unstable install ksysguard
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  ksysguard-data ksysguardd libkf5newstuff-data libkf5newstuff5 libkf5sysguard-bin
  libkf5sysguard-data libksgrd7 libksignalplotter7 libprocesscore7 libprocessui7
The following NEW packages will be installed:
  ksysguard-data libkf5newstuff-data libkf5newstuff5 libkf5sysguard-bin libkf5sysguard-data
  libksgrd7 libksignalplotter7 libprocesscore7 libprocessui7
The following packages will be upgraded:
  ksysguard ksysguardd
2 upgraded, 9 newly installed, 0 to remove and 178 not upgraded.
jdk

Last edited by jdkaye; 07-25-2015 at 01:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to pin a package to be installed from specific repo? tripialos Linux - Newbie 5 07-03-2015 05:45 AM
How to send high signal or low through a specific pin SuperDude123 Linux - Hardware 1 03-30-2010 09:53 AM
CPU 12-V power supply: 4-pin or 8-pin? michapma Linux - Hardware 3 07-23-2007 10:13 AM
Script to open programs in specific desktops plainkeyman Linux - Software 1 06-23-2004 01:55 PM
Starting programs at boot (RedHat specific?) damion Linux - General 1 12-18-2001 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration