In the Linux Essentials training, Don mentions that apt-get and apt handle the database of dependencies differently. Does that mean that they keep separate databases of packages? If so, what happens if you install/remove some packages with apt-get and others with apt? Will they get confused about which dependencies are already installed or which are no longer needed?
For example, apt-get install pkg1, installs pkg1 and pkg0 that it depends on. Next, apt install pkg2 installs pkg2, which is also dependent on pkg0. Does it reinstall pkg0 over the existing installation? Does it recognize that pkg0 is already installed?
Next, if we do apt remove pkg2, does it remove pkg0 because it doesn't know about the dependency of pkg1?