Skip to content

Instantly share code, notes, and snippets.

@muhfaris
Last active April 30, 2017 01:25
Show Gist options
  • Save muhfaris/425808681e833b4a46ad68d11d284a83 to your computer and use it in GitHub Desktop.
Save muhfaris/425808681e833b4a46ad68d11d284a83 to your computer and use it in GitHub Desktop.
Recovery password n linux
[ubuntu]
- boot, tekan e
- di 'ro' ganti menjadi 'rw init=/bin/bash'
[_ Ubuntu 14.04 and above _]
# apt list --installed
[_ Older Versions _]
# dpkg --get-selections | grep -v deinstall
# dpkg --get-selections | grep -v deinstall > ~/installed
[_ Alternativ _]
# dpkg -l
[_ Backup Currently Installed _]
# dpkg --get-selections > list.txt
[_ restore _]
dpkg --clear-selections
sudo dpkg --set-selections < list.txt
[_ To get installed like at backup time (i.e. to install packages set by dpkg --set-selections): _]
sudo apt-get dselect-upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment