code: def _view_deps(self, path, package):
          
          self.size = 0
          packages = []
          dependencies = (Utils().read_file(path + package)).splitlines()
          for dep in dependencies:
              if GetFromInstalled(dep).name():
                  ver = GetFromInstalled(dep).version()
                  packages.append(dep + ver)
              else:
                  dependencies.remove(dep)
          if packages:
              if "--checklist" in self.extra:
                  deps, dependencies = [], []
                  text = "Found dependencies for the package {0}".format(package)
                  backtitle = "{0} {1}".format(self.meta.__all__,
                                               self.meta.__version__)
                  status = True
                  deps = DialogUtil(packages, text, " Remove ", backtitle,
                                    status).checklist()
                  for d in deps:
                      dependencies.append("-".join(d.split("-")[:-1]))
                  self.meta.remove_deps_answer = "y"
              else:
                  print("")   # new line at start
                  self.msg.template(78)
                  print("| Found dependencies for the package {0}:".format(
                      package))
                  self.msg.template(78)
                  for pkg in packages:
                      find = find_package(pkg + self.meta.sp, self.meta.pkg_path)
                      self._sizes(find[0])
                      print("| {0}{1}{2}".format(self.meta.color["RED"], pkg,
                                                 self.meta.color["ENDC"]))
                  self.msg.template(78)
                  self._calc_sizes()
                  print("| {0}Size of removed dependencies {1} {2}{3}".format(
                      self.meta.color["GREY"], round(self.size, 2), self.unit,
                      self.meta.color["ENDC"]))
                  self.msg.template(78)
          return dependencies
docs: View dependencies before remove