dpkg --list
# show info for a package
- dpkg --status package_name
+ dpkg --status foobar
- # show files owned by a package
- dpkg --listfiles package_name
+ # show files owned by an installed package
+ dpkg --listfiles foobar
+
+ # show files owned by an uninstalled package
+ apt-file list foobar
+
+ # show which package owns a file
+ dpkg -S /usr/bin/foobar
+
+ # show which package will own a file
+ apt-file find /usr/bin/foobar
# resynchronize the package index files from their sources
apt-get update
sudo timedatectl set-timezone America/New_York
https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-18-04
+
+## Grub
+
+On a new installation of Ubuntu 18.04 on Digital Ocean I ran `sudo apt-get dist-upgrade` and saw this message:
+
+"A new version of /boot/grub/menu.lst is available, but the version installed currently has been locally modified. What would you like to do about menu.lst?
+
+I selected the first option called "install the package maintainer's version" even though the second option called "keep the local version currently installed" was highlighted. Showing differences didn't work. I rebooted the server and it came back up. There's a related post at https://www.digitalocean.com/community/questions/ubuntu-new-boot-grub-menu-lst-after-apt-get-upgrade