I need these packages with the latest upstream version backported for ubuntu/natty
- libccid_1.4.5-0ubuntu1_amd64.deb
- libpcsclite1_1.8.1-0ubuntu1_amd64.deb
- libpcsclite-dev_1.8.1-0ubuntu1_amd64.deb
- libusb-1.0-0_1.0.9-0ubuntu1_amd64.deb
- libusb-1.0-0-dev_1.0.9-0ubuntu1_amd64.deb
- opensc_0.12.2-1ubuntu1ppa1~natty1_amd64.deb
- pcscd_1.8.1-0ubuntu1_amd64.deb pcsc-tools_1.4.18-0ubuntu1_amd64.deb
I tried to build them from source with update but it failed. I am not an expert at packaging and there are so many tutorials and recipes out there.
Do you know a good and up to date tutorial for backporting Ubuntu packages?
How do I get packages from other releases without having to build them myself?
You would be much better off exploring apt pinning, see
man apt_preferences
.Let's assume you're on Oneiric and you want to get those packages from Precise.
If you read the
man
you'll see that I copy/pasted the relevant sections and just modified the release name/etc/apt/preferences
:Then, I copied my
/etc/apt/sources.list
to/etc/apt/sources.list.d/precise.list
and replaced all occurrences of oneiric with precise. Then ranapt-get update
and finallyapt-get upgrade
.For some reason, pcscd and opensc didn't get installed, probably because it wasn't installed to begin with so there was nothing to upgrade, no big deal, I can install exactly that version using precise as the reference like this.
Take note of the use of
-t
,packagename/precise
would also work.and there are the packages you want, from the latest release, and only those packages, they will also be updated automatically. If you don't want them anymore, just delete the entries from
/etc/apt/preferences
and the next time you runapt-get upgrade
they'll be removed. Should you remove the entire prefs file be sure to delete thatprecise.list
sources file as well our your system will try to update to the latest set of packages. Also if you decide to dist-upgrade later, you'll need to remove the entire prefs file and it would probably be a good idea to remove the other sources.list less the upgrade will find, thanks to the higher priority, that there are no packages to update.Apt pinning isn't that hard, you just need to dig in a little and experiment. All the verbs for
n=
etc are found by examiningapt-cache policy
.This is why seasoned admins rant and rave about apt vs yum. You can concisely update services and keep them up-to-date in a clean, deterministic, and maintainable manner.
No more compiling packages either.
I strongly suggest you read the entire man page and get comfortable with the concept and read other guides on apt pinning before continuing with this proposal. Good luck and have fun!
https://help.ubuntu.com/community/PinningHowto