Ubuntu/Debian dpkg tips

Dato che mi scordo sempre ho deciso che li pubblico qua cosi’ so come ritrovarli quando mi riserviranno.
Questi due comandi sono molto utili per chi usa sistemi basati su Debian, i primi permettono di reinstallare tutti i pacchetti da un pc a un altro, mentre il secondo mette nello stato “hold” un pacchetto in modo che non venga piu’ upgradato (a voi potrebbe non servire ma a me si):

To make a local copy of the package selection states:
dpkg --get-selections > package.list

You might transfer this file to another computer, and install it there with:
dpkg --set-selections < package.list

To put on hold a package:
echo <package-name> hold | sudo dpkg --set-selections



Leave a Comment