ssh-apt-autoremove

Automate orphaned APT package removal on remote Linux hosts.

6|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-apt-autoremove
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ssh-apt-autoremove
Source: https://github.com/Nightreaver/python-ssh-mcp/tree/main/skills/ssh-apt-autoremove
Command: npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-apt-autoremove

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of removing orphaned APT packages on remote hosts, which are packages that were installed as dependencies but are no longer needed.

Core Features & Use Cases

  • Orphan Package Removal: Automatically remove packages that were installed automatically as dependencies for some other package, where nothing currently installed still requires them.
  • Post Removal Cleanup: Typically used after a manual package removal to clean up any remaining dependencies.
  • Use Case: After removing a specific package using ssh_apt_remove, this Skill can be used to remove any orphaned packages that were dependencies of the removed package.

Quick Start

Use the ssh-apt-autoremove skill to remove any orphaned packages from the host 'web01'.

Frequently Asked Questions about ssh-apt-autoremove

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate removal of orphaned APT packages on remote Linux hosts?

You can automate orphaned APT package removal by executing the 'apt-get -y autoremove' command on remote Linux hosts. This automatically removes packages installed as dependencies that are no longer needed, cleaning up the system.

What are orphaned APT packages and when should I clean them up?

Orphaned APT packages are dependencies installed automatically for other software but no longer required. You should clean them up as a post-installation cleanup, typically after manually removing a primary package to sweep its leftover dependencies.

Do I need root access to run apt-get autoremove on a remote host?

Yes, you need root access or a sudoers configuration to execute apt-get autoremove on a remote host. Removing system packages requires elevated privileges to modify the installed software base.

What's the best way to clean up dependencies after removing a package on a remote server?

The best way to clean up dependencies after removing a package on a remote server is running apt-get -y autoremove. This targets and automatically removes orphaned packages left behind by the previous manual removal.

Can I use this to remove specific manually installed packages from a remote host?

No, this specifically targets orphaned dependencies rather than manually specified packages. You should use a separate package removal command first, then use this autoremove process to clean up the resulting orphaned dependencies.