There isn't an uninstall option but the following will help get you on the right path:
- work backward through the install documentation
(
https://www.accesstomemory.org/en/docs/2.5/admin-manual/installation/linux/ubuntu-bionic/) `apt remove`ing everything you `apt
install`ed
- install debfoster and or deborphan then run them. Please be smart if you decide to do this; they'll happily uninstall recommended system
packages if you ask them to.
- `rm -rv` any further configuration file/s and folder/s listed in the documentation.
kgoetz@minister:~$ apt show debfoster
[...]
Description: Install only wanted Debian packages
debfoster is a wrapper program for apt and dpkg. When first run, it
will ask you which of the installed packages you want to keep
installed.
.
After that, it maintains a list of packages that you want to have
installed on your system. It uses this list to detect packages that
have been installed only because other packages depended on them. If
one of these dependencies changes, debfoster will take notice, and
ask if you want to remove the old package.
.
This helps you to maintain a clean Debian install, without old
(mainly library) packages lying around that aren't used any more.
kgoetz@minister:~$ apt show deborphan
[...]
Description: program that can find unused packages, e.g. libraries
deborphan finds "orphaned" packages on your system. It determines which
packages have no other packages depending on their installation and shows
you a list of these packages. It is most useful when finding libraries,
but it can be used on packages in all sections.
.
This package also includes orphaner, a text menu frontend to deborphan.
Please install the recommended packages dialog, gettext-base and apt when
you want a working and fully featured orphaner.
All that said if you are planning to do repeated tests I suggest making a disposable VM for the purpose then
- create vm
- snapshot
- run script
- restore snapshot
thanks,
--
Karl Goetz
Technical Services Officer - eResearch, Information Technology Services
University of Tasmania & Tasmanian Partnership for Advanced Computing
Mail: University of Tasmania, Private Bag 69, Hobart, Tasmania 7001
Delivery: TT Flynn Street, Sandy Bay, Tasmania 7005
University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.