APT configuration and Preference
APT configuration and Preference
APT configuration file
- /etc/apt/apt.conf
- /etc/apt/apt.conf.d/
1 | cat << EOF | sudo tee /etc/apt/apt.conf.d/zz-10-install |
APT Configuration Query program
1 | apt-config dump |
Preference control file for APT
- /etc/apt/preferences
- /etc/apt/preferences.d/
stable
1 | cat << EOF | sudo tee /etc/apt/preferences.d/10-stable |
testing
1 | cat << EOF | tee /etc/apt/preferences.d/20-testing |
unstable
1 | cat << EOF | tee /etc/apt/preferences.d/30-unstable |
experimental
1 | cat << EOF | tee /etc/apt/preferences.d/40-experimental |
Shows available versions of installed packages
1 | apt-get install -y --no-install-recommends apt-show-versions |
Install/Upgrading Testing Packages
1 | apt-get -t testing install nginx-full |
Show policy settings
1 | apt-cache policy wireguard-dkms |
List of configured APT data sources
- /etc/apt/sources.list
- /etc/apt/sources.list.d
1 | deb http://deb.debian.org/debian/ stable main contrib non-free |