Quote:
(externalgreenfu asked): is there a way to use apt-get and install stuff from the testing distro?
|
Yes indeed.
The APT HOWTO is not a bad read. Highly recommended. Everything in this reply is in there, but probably written more clearly:
First, you need sources for testing packages. If you've done that already, skip this part. We'll use
Netselect will help you find the fastest nearby mirror.
- As root...
- Install netselect
Code:
# apt-get install netselect
- Be sure that wget is installed. If it is, this command with note that it's already up to date, which is OK.
Code:
# apt-get install wget
- Change to some temporary directory or other (your /home is OK, too)
- Send Netselect off to find the best testing package mirror in your neighborhood
Code:
# netselect-apt testing
- Relax for a minute... Watch the dots...
- See what you got:
- Make a backup of your current sources.list
Code:
# cp /etc/apt/sources.list /etc/apt/sources.list.old
- append your new testing distro sources to your current sources.list
Code:
# cat /etc/apt/sources.list.old /tmp/sources.list > /etc/apt/sources.list
- Take a long, hard look at your new sources.list - does it look OK? Compare it to /etc/apt/sources.list.old, if you want.
Code:
# more /etc/apt/sources.list # (Q to exit)
OK. Now you've got testing mirrors. Update your apt-self:
And... finally... upgrade X
Code:
# apt-get -u -t testing x-window-system
The -u switch tells apt to list all of the packages it wants to upgrade. The "-t testing" bit tells apt you want the testing version.
Finally, a little housekeeping.
Add this line to /etc/apt/apt.conf to keep Woody (stable) as your default distro:
Code:
APT::Default-Release "stable";
Sorry about the happy face - it's APT-colon-colon-capital-D....
Install apt-show-versions to help you keep your mixed configuration:
Code:
apt-get -u install apt-show-versions
Now, when you want to upgrade you should do these three steps (instead of the old two-step):
Code:
# apt-get update
# apt-get install `apt-show-versions -u -b | grep testing`
# apt-get upgrade
It upgrades just the testing packages, then the rest.
HTH