Debian

December 7, 2019 Linux 0 minutes, 34 seconds

Do not add or remove dependencies

apt-get upgrade

Only add new dependencies

apt-get upgrade --with-new-pkgs

Add and remove dependencies

apt-get dist-upgrade

Usually occuring behind a (enterprise) proxy setup

/etc/apt/apt.conf.d/99fixbadproxy

Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy    true;

apt-cache policy PACKAGE
apt-get install PACKAGE=VERSION

apt-mark hold PACKAGE
apt-mark unhold PACKAGE
apt-mark showhold

touch /var/swap
chmod 600 /var/swap
dd if=/dev/zero of=/var/swap bs=1M count=SIZE_OF_RAM_IN_MB
mkswap /var/swap
swapon /var/swap
echo "/var/swap    none    swap    sw    0    0" >> /etc/fstab