code: def package_list(self, repo, name, INDEX, installed):
          
          tty_size = os.popen("stty size", "r").read().split()
          row = int(tty_size[0]) - 2
          try:
              all_installed_names = []
              index, page, pkg_list = 0, row, []
              r = self.list_lib(repo)
              pkg_list = self.list_greps(repo, r)[0]
              all_installed_names = self.list_of_installed(repo, name)
              print("")
              for pkg in sorted(pkg_list):
                  pkg = self._splitting_packages(pkg, repo, name)
                  if installed:
                      if repo == "sbo":
                          if pkg in all_installed_names:
                              pkg = ("{0}{1}{2}".format(self.meta.color["GREEN"],
                                                        pkg,
                                                        self.meta.color["ENDC"]))
                      else:
                          if pkg in all_installed_names:
                              pkg = ("{0}{1}{2}".format(self.meta.color["GREEN"],
                                                        pkg,
                                                        self.meta.color["ENDC"]))
                  if INDEX:
                      index += 1
                      pkg = self.list_color_tag(pkg)
                      print("{0}{1}:{2} {3}".format(
                          self.meta.color["GREY"], index,
                          self.meta.color["ENDC"], pkg))
                      if index == page:
                          read = raw_input("\nPress {0}Enter{1} to "
                                           "continue... ".format(
                                               self.meta.color["CYAN"],
                                               self.meta.color["ENDC"]))
                          if read in ["Q", "q"]:
                              break
                          print("")   # new line after page
                          page += row
                  else:
                      print(pkg)
              print("")   # new line at end
          except EOFError:
              print("")   # new line at exit
              raise SystemExit()
docs: List with the installed packages