jak@jak-x230:~/Projects/Debian/apt:master$ sudo apt install ./foo_1.0_all.deb --allow-remove-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'foo' instead of './foo_1.0_all.deb'
The following package was automatically installed and is no longer required:
libv8-3.14.5
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
jak-machine-master
The following NEW packages will be installed:
foo
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
jak-machine-master
0 upgraded, 1 newly installed, 1 to remove and 131 not upgraded.
Need to get 0 B/2,080 B of archives.
After this operation, 3,072 B disk space will be freed.
Do you want to continue? [Y/n] ^C
jak@jak-x230:~/Projects/Debian/apt:master$ sudo apt remove jak-machine-master --allow-remove-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
android-tools-fsutils apt-cacher-ng apt-listbugs aqbanking-tools astyle bzr-builddeb ccache cdebootstrap clang cloc cppcheck cudf-tools dar distro-info dose-builddebcheck dose-distcheck ecryptfs-utils edos-distcheck encfs extremetuxracer extremetuxracer-data
extremetuxracer-extras firmware-iwlwifi firmware-realtek flawfinder fonts-jsmath geany-plugin-latex geany-plugin-vc germinate git-annex gnome-bluetooth google-perftools hledger hledger-web ibus-gtk3 inotify-tools jak-devel keyutils libaqbanking-data libaqbanking35
libaqbanking35-plugins libaqebics0 libaqhbci24 libaqofxconnect7 libclass-methodmaker-perl libdar64-5000 libdebian-installer-extra4 libdebian-installer4 libecryptfs1 libgnupg-interface-perl libgoogle-perftools4 libgwenhywfar-data libgwenhywfar60 libhawtjni-runtime-java
libinotifytools0 libjansi-java libjansi-native-java libjline2-java libktoblzcheck1v5 liblinear3 libmd0 libmoox-late-perl libnotify-bin libpkcs11-helper1 libsfml-audio2.4 libsfml-graphics2.4 libsfml-system2.4 libsfml-window2.4 libsofia-sip-ua-glib3 libsofia-sip-ua0
libtcmalloc-minimal4 libtinyxml2-5 libv8-3.14.5 libvncclient1 libvncserver1 libxdg-basedir1 libxmlsec1-gcrypt libxmlsec1-gnutls ltrace manpages-posix manpages-posix-dev maxima maxima-doc myrepos nmap nmap-common ocaml-base-nox ohcount openttd openttd-data openttd-opengfx
openttd-openmsx openvpn pychecker pylint python-apt-dev python-astroid python-backports.functools-lru-cache python-defusedxml python-lazy-object-proxy python-mutagen python-polib python-soappy python-ubuntutools python-wrapt python-wstools python3-germinate qprint recordmydesktop
redshift rubber ruby-debian ruby-diff-lcs ruby-gettext ruby-locale ruby-soap4r ruby-text ruby-unicode ruby-xmlparser rygel-gst-launch sbt scala scala-library scala-parser-combinators scala-xml signing-party sitecopy sparse splint splint-data telepathy-rakia texlive-lang-german
ubuntu-dev-tools unifdef valgrind wxmaxima x11vnc x11vnc-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
jak-machine-master
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
jak-machine-master
0 upgraded, 0 newly installed, 1 to remove and 131 not upgraded.
After this operation, 12.3 kB disk space will be freed.
Do you want to continue? [Y/n] ^C