This is Bavaria, Germany!
apt-programs rely on environment variable for proxy-server, put this in /etc/profile:
http_proxy=http://your.proxy:3128
export http_proxy
|
Query in stable area |
apt-cache search perl |
|
query for packages in testing, unstable |
|
|
Update the list of files in local repository |
apt-get update |
|
Install |
apt-get install perl |
|
Install from testing-area |
apt-get install -t testing perl |
|
Install a package from local directory |
dpkg -i perl.deb |
|
Delete a package |
apt-get remove --purge perl |
|
Information about a package not installed |
apt-cache show perl |
|
List of all installed packages |
dpkg -l | grep ^ii |
|
Install upgrades (not from testing/unstable!) |
apt-get -y dist-upgrade |
|
|
|
This is where apt-get tries to get the packages from
woody:
# stable |
# stable deb http://ftp.at.debian.org/debian sarge main non-free contrib deb http://ftp.at.debian.org/debian-non-US sarge/non-US main non-free # Security-updates deb http://security.debian.org/ stable/updates main contrib non-free |
If you get a failure while running apt-get update like this
Get:42 http://....
Fetched 6185kB in 1m3s (96.9kB/s)
Reading Package
Lists... Error!
E: Dynamic MMap ran out of room
E: Error occured while
processing trackballs-data (NewVersion1)
E: Problem with MergeListe /var/lib/apt/lists/...
E:
The package lists or status file could not be parsed or opened.
This means that you reached your cache-limit. Put this line into /etc/apt/apt.conf (usually this file does not exist):
APT::Cache-Limit 10000000;
Usually you would like to take packages only from stable-branch. But if you have lines for testing and update in your sources.list you create a fence to jump over with the file /etc/pat/preferences:
# File /etc/apt/preferences |
Nevertheless, you can install packages from other branches like that:
apt-get install -t testing perl
Get a list:
server1# dpkg --get-selections \* >all_from_server1.txt
Use that list to install it on another server
server2# cat all_from_server1.txt | dpkg --set-selections server2# dselect install remove
This is what you need to self-compile perl-modules
# apt-get install build-essential # apt-get install unzip
apt-get install build-essential