Last active
April 30, 2017 01:25
-
-
Save muhfaris/425808681e833b4a46ad68d11d284a83 to your computer and use it in GitHub Desktop.
Recovery password n linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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