LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Some clarifications regarding debian backports (https://www.linuxquestions.org/questions/debian-26/some-clarifications-regarding-debian-backports-4175451199/)

rng 02-21-2013 07:37 PM

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.

SalmonEater 02-21-2013 08:23 PM

See pinning & you may want to do a search on it!

rng 02-21-2013 11:35 PM

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?

Randicus Draco Albus 02-22-2013 01:40 AM

Quote:

Originally Posted by rng (Post 4897202)
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.

rng 02-22-2013 02:47 AM

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?

Philip Lacroix 02-22-2013 03:45 AM

Quote:

Originally Posted by rng (Post 4897105)
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

cynwulf 02-22-2013 07:50 AM

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.

rng 02-22-2013 06:12 PM

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.

descendant_command 02-22-2013 07:00 PM

Quote:

Originally Posted by rng (Post 4897835)
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.

rng 02-22-2013 07:25 PM

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.

descendant_command 02-22-2013 07:36 PM

Yes.

SalmonEater 02-24-2013 08:51 AM

Yes, Debian is well worth the effort to learn!


All times are GMT -5. The time now is 12:31 AM.