feat: printing utils
This commit is contained in:
@@ -13,6 +13,15 @@ def list_explicitly_installed() -> List[str]:
|
||||
return run_pkg_manager_cmd(["-Qeq"]).stdout.split()
|
||||
|
||||
|
||||
def remove_orphans() -> bool:
|
||||
"""Removes all orphan packages
|
||||
|
||||
Returns:
|
||||
True if successful, False otherwise
|
||||
"""
|
||||
return sp.run("pacman -Qdtq | pacman -Rnsy -", capture_output=True).returncode == 0
|
||||
|
||||
|
||||
def uninstall_package_list(pkgs: List[str]) -> bool:
|
||||
"""Uninstall all packages in the list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user