SirToffski / Arch-GNS3-Helper

Helper script to install GNS3 on Arch
MIT License
10 stars 7 forks source link

Uninstall #8

Open StanESmith opened 2 years ago

StanESmith commented 2 years ago

How would I go about removing this to start fresh? There where errors during my run of the this script but there is no mention of how to remove everything that the script puts in place.

SirToffski commented 2 years ago

Hey!

Since this is all pacman, all you'd need to do is remove everything the script installs.

If you need to remove every package this script tried installing, then:

sudo pacman -R yay \
libelf \
libpcap \
cmake \
dynamips \
vpcs \
iouyap \
lib32-openssl \
lib32-gcc-libs \
ubridge \
qemu \
qemu-arch-extra \
docker \
wireshark-qt \
pip2pkgbuild \
python-wheel \
python-zipstream \
qt5-svg \
qt5-websockets \
python-pip \
python-pyqt5 \
python-sip \
python-async_generator \
python-jinja \
python-distro \
python-jsonschema \
python-aiohttp-cors \
git \
python-pip2pkg-aiohttp \
python-pip2pkg-yarl \
python-pip2pkg-aiofiles \
python-pip2pkg-psutil \
python-pip2pkg-async \
python-pip2pkg-py-cpuinfo \
python-pip2pkg-gns3-server \
python-pip2pkg-gns3-gui \

sudo rm /usr/share/applications/gns3.desktop

sudo gpasswd -d "$USER" wireshark

Keep in mind that some packages like git, python-pip may have already been on your PC beforehand.

For future reference, you could get a snapshot of your currently installed packages (explicitly) with # pacman -Qe. You could grab a list of installed ones before any script and compare it with a list of packages installed after. Something like:

/// get a list of packages installed before
# pacman -Qe | tee ~/installed_packages_before.txt

/// install some more packages, for example with this script

# pacman -Qe | tee ~/installed_packages_after.txt

/// Get a diff 

diff ~/installed_packages_before.txt ~/installed_packages_after.txt

I also very much recommend pug: https://github.com/Ventto/pug

A great tool that updates a gist every time packages are installed and un-installed.