LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-21-2013, 07:37 PM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
Some clarifications regarding debian backports


I want to use debian-stable with backports and was reading up about it. I need to add following to the sources.list:
Quote:
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
Then I can install packages using command:
Quote:
apt-get -t squeeze-backports install libreoffice
However, when I run apt-get update followed by dist-upgrade, will the libreoffice get updated automatically? Also will apt-cache search find packages from backports repo also? Thanks for your help.
 
Old 02-21-2013, 08:23 PM   #2
SalmonEater
Member
 
Registered: Jun 2010
Location: Up the Big River w/o paddle
Distribution: Salent & Slackel
Posts: 131

Rep: Reputation: 19
See pinning & you may want to do a search on it!
 
Old 02-21-2013, 11:35 PM   #3
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
The link that you gave ( https://sites.google.com/a/demonkuty...debianpackages ) is very interesting. Is this a good way to have the best of all versions: stable, testing and unstable? Can one just setup in this manner (without using names like squeeze, wheezy etc) and one may have a distro which upgrades regularly (except during freeze periods)? Or should one use this only for an occassional application? What is the best method to have latest libreoffice on debian stable?
 
Old 02-22-2013, 01:40 AM   #4
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by rng View Post
Is this a good way to have the best of all versions: stable, testing and unstable?
If your meaning is mix packages from Stable, Testing and Unstable, the answer is definitely not. Do not mix Stable with other repositories, except backports.
 
Old 02-22-2013, 02:47 AM   #5
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
From: http://wiki.debian.org/AptPreferences#Pinning (official view):
Quote:
Before you consider 'pinning', you might want to check if the package you want has been backported to your release.
So backports are preferred over pinning.

What about my original questions regarding backports?
 
Old 02-22-2013, 03:45 AM   #6
Philip Lacroix
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 441

Rep: Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574
Quote:
Originally Posted by rng View Post
However, when I run apt-get update followed by dist-upgrade, will the libreoffice get updated automatically? Also will apt-cache search find packages from backports repo also? Thanks for your help.
Hi rng,

I suspect that the author of the wiki you linked used the word "pinning" like "mixing stable with testing and unstable" (there's also a disclaimer there): as far as I know, it perfectly makes sense to pin packages from the backports repository.

Code:
deb ftp://ftp.ca.debian.org/debian stable main
deb ftp://ftp.ca.debian.org/debian-security stable/updates main
deb ftp://ftp.ca.debian.org/debian-backports stable-backports main
Code:
Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 900

Package: *
Pin: release o=Debian,a=stable-backports
Pin-Priority: 500

Package: libreoffice
Pin: release o=Debian,a=stable-backports
Pin-Priority: 901
And finally:

Code:
# apt-get -t stable-backports install libreoffice
This should set apt to automatically update libreoffice from the backports repository, while all other packages would stick to stable. [Edit] It seems actually that apt's default behavior in squeeze is quite conservative regarding backports: even without a preferences file I get the same upgrade as with the settings above (see also caravel's post below).

Regarding backports in general, installing them on Debian stable should be done on an occasional basis and for single packages you need: using them extensively might give you problems with dependencies (they are compiled for stable but they're still packages from testing). This is the official version:

http://backports-master.debian.org/

Regarding generic vs. specific release names, using the generic names lets your system to be ready for upgrade when a new stable is released and your lists are updated, while with specific names you stick to your current release, until you edit the sources list. I'm not sure if an automatic upgrade to the next stable release is always the safest way: you have to be aware of many things and read the distribution-specific upgrade notes. This would be for a squeeze-to-wheezy upgrade:

http://www.debian.org/releases/wheez...rading.en.html

There's also something here on that matter:

http://www.linuxquestions.org/questi...ll-4175448555/

Kind regards,
Philip

Last edited by Philip Lacroix; 02-22-2013 at 08:20 AM.
 
2 members found this post helpful.
Old 02-22-2013, 07:50 AM   #7
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
The backports repo is not set to do automatic upgrades, so normal upgrade or dist-upgrade will not upgrade the whole system to backports. As others have hinted, you should not just upgrade everything to backports as it was never intended to be used as a complete distribution.

Last edited by cynwulf; 02-22-2013 at 07:51 AM.
 
1 members found this post helpful.
Old 02-22-2013, 06:12 PM   #8
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Thanks of a detailed information. I realize that backports cannot be used as a complete distro (unlike stable, testing, unstable or experimental). It cannot even be used to extend debian-stable, since packages from backports will not be regularly upgraded with apt-get upgrade or dist-upgrade commands.
 
Old 02-22-2013, 07:00 PM   #9
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by rng View Post
Thanks of a detailed information. I realize that backports cannot be used as a complete distro (unlike stable, testing, unstable or experimental). It cannot even be used to extend debian-stable, since packages from backports will not be regularly upgraded with apt-get upgrade or dist-upgrade commands.
Well, experimental is not a complete system, and that is exactly the point of backports, to extend debian stable. And yes, an update/upgrade will pull updates to packages installed from backports.
 
Old 02-22-2013, 07:25 PM   #10
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
descendant_command :
Quote:
an update/upgrade will pull updates to packages installed from backports
caravel
Quote:
The backports repo is not set to do automatic upgrades, so normal upgrade or dist-upgrade will not upgrade the whole system to backports.
Philip Lacroix
Quote:
This should set apt to automatically update libreoffice from the backports repository, while all other packages would stick to stable. [Edit] It seems actually that apt's default behavior in squeeze is quite conservative regarding backports: even without a preferences file I get the same upgrade.
Ok. So if I install libreoffice from backports and run apt-get upgrade or dist-upgrade, libreoffice will get updated from backports and remaining system will get upgraded from stable repositories. This will occur even without a preference file.

Thanks for your patience. I am new to Debian.
 
Old 02-22-2013, 07:36 PM   #11
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Yes.
 
Old 02-24-2013, 08:51 AM   #12
SalmonEater
Member
 
Registered: Jun 2010
Location: Up the Big River w/o paddle
Distribution: Salent & Slackel
Posts: 131

Rep: Reputation: 19
Yes, Debian is well worth the effort to learn!
 
  


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] stable-backports distribution spec not known to backports.debian.org jhwilliams Debian 7 05-31-2012 05:31 AM
LXer: LibreOffice is now in Debian Squeeze Backports LXer Syndicated Linux News 0 06-23-2011 03:30 AM
Debian testing v.s. stable+backports eveningsky339 Debian 34 12-13-2010 08:22 AM
Question on Debian Backports michalng Debian 4 10-12-2010 10:13 AM
Debian & old pc: Can we PLEASE have a 2.4 series or best 2.4.31 kernel in BACKPORTS? frenchn00b Debian 11 01-06-2010 10:58 AM

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

All times are GMT -5. The time now is 04:31 PM.

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