Helper script to convert output from apt list into preferences file.
This is used to lock an Ubuntu APT version to the exact setup used in another machine.
After running the application, copy the preferences file to /etc/apt/preferences
.
Depending on the pin-priority value, apt
will prefer or demand the specific version listed.
Install nvm and use node 12
nvm install 12
nvm use 12
Subsequently, only the following needs to be run
npm run build
Generate directly from current system with pin-priority of 1001
./aptpref -p 1001
sudo apt list > apt_list.txt
./aptpref -f apt_list.txt -p 1001