by RexRollman · 12y ago · 0 comments
But then there is "testing", and "unstable" too which gets newer packages quite often. I personally run "unstable" as my main development machine and have for many years. Even "unstable" is very stable, but might require some manual work once-a-year or so, with a solution often easily found by some google-fu.
Then there is also "experimental", which might very well have broken dependencies etc.
The cool thing is you can run stable, but then pick some packages from unstable using what is called apt-pinning. This way you can get a rock solid base, but use newer packages of some software. Best of both worlds!
But obviously you try to avoid this in production environments if possible.
It only works for comparatively small packages, you'll need to keep an eye out yourself for security patches -- but it allows you to install stuff via dpkg -- and generally if the thing is too complex, you'll probably want to run a distribution package anyway (something simple in this context is nginx, varnish, nodejs (but I tend to run upstream nodejs -- too much of a moving target...) -- something complex might be pygame or network-manager -- basically stuff that has deep and wide dependencies.
For stuff that I need to get from upstream, I try to use xstow -- it's a great way to keep either /usr/local or ~/opt/ manageable. Note: for nodejs -- it doesn't read the prefix variable for just make install, use DESTDIR (and do some manual cleanup):
http://www.debian-administration.org/articles/682#comment_26
https://wiki.debian.org/Schroot
http://www.debian-administration.org/article/schroot_-_chroo...
Note the warnings about going willy-nilly "xhost +". Much better to bind-mount home under the schroot(s) -- partially you'll probably want access to your home folder anyway (say Firefox or Chrome profile?) -- and it gives access to the X11 auth cookie keeping everything as (in)secure as it usually is.
# apt-get -y install apt-file
Update apt-file db (might do this on install, I forget): # apt-file update
Now the bit you are interested in: How do you add PPAs in ubuntu? Answer: `add-apt-repository`Does debian have something named add-apt-repository?
# apt-file search add-apt-repository
software-properties-common: /usr/bin/add-apt-repository
software-properties-common: /usr/share/man/man1/add-apt-repository.1.gz
That looks familiar. # apt-get install -y software-properties-common
# add-apt-repository ppa:libreoffice/ppa
As a long time debian fanboy I have to say "new software is exclusively published on Ubuntu" was kind of funny. Unless you were talking about `upstart` ;) A great reseource for debian is the Debian Administrators Handbook. The section on pinning is:http://debian-handbook.info/browse/stable/sect.apt-get.html#...
For example, take a look at this - http://www.omgubuntu.co.uk/2014/01/turpial-3-available-ubunt.... How do you get this into Debian? This is what I mean by software that is published for ubuntu. I do not mean that it cannot be built for debian, but rather that it is not PUBLISHED for debian.
Or is the only option to do a dpkg-build?
I've been using Debian stable on desktops for years now with few problems, and backports have only improved in the past couple of years.
[1] since 2009 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=399633
Debian packages aren't necessarily much (any?) more stale than they are in Arch. It depends on whether you're using stable, unstable, or testing. (If I remember correctly, "unstable" is actually fairly stable, whereas "stable" is more like an LTS. "testing" is closer to Arch, though less "bleeding edge" than Arch is.)
I run testing on my non-prod (experimental) server instances and would probably go with stable for anything production quality, although I've never experienced anything going wrong with Testing.
I have my server tied to "Testing" rather than the current name, which turns it into a rolling distribution (like Arch).