How to uninstall AMP & packages

Adding an extension found here since reply’s are locked: How to uninstall AMP

These files were logged at /root directory

When you installed AMP, this command pulled in several dependencies:

:puzzle_piece: Packages Installed with AMP

Package Purpose Safe to Remove When Removing AMP?
ampinstmgr The main AMP service manager — this is AMP. :white_check_mark: Yes (core AMP package)
lib32gcc-s1, lib32stdc++6, libc6-i386 32-bit libraries for running 32-bit binaries (AMP may use them for compatibility). :white_check_mark: Usually yes, if you have no other 32-bit software.
libevent-core-2.1-7t64 Provides async networking support (AMP uses this). :white_check_mark: Safe to remove, unless another app needs it.
libutempter0 Used by terminal multiplexers like tmux. :warning: Keep if you use tmux or other terminal tools.
socat Utility for port forwarding / socket communication (AMP uses it for networking). :white_check_mark: Safe to remove.
tmux Terminal multiplexer that AMP uses to manage server sessions. :warning: Keep if you use tmux manually — otherwise, remove it.

:spouting_whale: Docker Packages (Installed Separately)

AMP installed Docker during the same session:

containerd.io docker-ce docker-ce-cli docker-compose-plugin docker-buildx-plugin ...

These were installed independently from AMP.

  • AMP can use Docker, but it doesn’t depend on it unless you specifically configured it that way.

  • :white_check_mark: You can keep Docker if you use it for other projects, or remove it if you only installed it for AMP.


:white_check_mark: Recommended Removal Command

If you want to completely remove AMP and all related utilities:

sudo systemctl stop ampinstmgr amptasks ampfirewall
sudo apt purge ampinstmgr lib32gcc-s1 lib32stdc++6 libc6-i386 libevent-core-2.1-7t64 libutempter0 socat tmux
sudo apt autoremove --purge
sudo rm -rf /home/amp /opt/amp /var/lib/amp /etc/systemd/system/amp* /etc/amp*

If you also want to remove Docker (optional):

sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
sudo rm -rf /var/lib/docker /var/lib/containerd

Don’t forget your ufw firewall rules that amp created:
[ 1] 8080/tcp
[ 2] 28015/udp
[ 3] 28016/udp
[ 4] 28016/tcp
[ 5] 12820/udp
[ 6] 25565/tcp
[ 7] 25565/udp
[ 8] 2223/tcp
[ 9] 2224/tcp
[10] 8080/tcp (v6)
[11] 28015/udp (v6)
[12] 28016/udp (v6)
[13] 28016/tcp (v6)
[14] 12820/udp (v6)
[15] 25565/tcp (v6)
[16] 25565/udp (v6)
[17] 2223/tcp (v6)
[18] 2224/tcp (v6)