r/linuxmint • u/iamapizza • Oct 31 '26
Anything that can help with inventory of everything I've installed and tweaked?
I've been using mint for a few years now, and I'm intent on doing a clean install. I haven't kept track of things I've installed via apt, flatpak, appimages, or modified in udev rules, apt sources, modprobe, things like that.
Is there a way I could get a few rough lists of my own changes. I don't actually want to automate their installation, just produce a list is enough of a reference.
8
Upvotes
3
u/WeAreAlreadyCyborgs Linux Mint 22.3 Zena | Cinnamon Oct 31 '26
For apt packages
Flatpak
1
u/ScouringtheUniverse Linux Tech Oct 31 '26
https://www.reddit.com/r/linuxmint/comments/1xjuz2n/linuxtool_mintsetup_310_is_now_fresh_save_and/
2
u/Linuxmonger Oct 31 '26
Next time around, immediately after install, before you do anything else, run the following;
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals.
See 'man gittutorial' to get started, then see 'man giteveryday' for a useful minimum set of commands.
Etckeeper manages /etc be storing in a git, mercurial, bazaar, or darcs repository. By default each of the commands operates on /etc, but a different directory can be speci‐fied to operate on a clone of the /etc repository located elsewhere.
Tig is an ncurses-based text-mode interface for git. It functions mainly as a Git repository browser, but can also assist in staging changes for commit at chunk level and act as a pager for output from various Git commands.
On Debian based distros, etckeeper makes an initial commit on install, and ties into apt/apt-get/dpkg to make an automatic snapshot before any software install or removal.
Below is tig, started in the /etc/ directory with the 2027-06-27 11:49 change highlighted (highlights and color don't show here, but a picture of this is https://imgur.com/a/YHlIz3m
This was recorded before running 'sudo apt update' by apt, it didn't need any other effort on my part. It shows exactly what changes happened in the /etc/ folder beforehand, that being that I added a core to a VM called "sysadmin_test".
It lets you see what happens, when, and helps you fix things if they get broken.
2
u/Friendly_Brick752 29d ago
Main Menu > Backup Tool has an option to store a list of "installed" software, which you can take to a new box
1
u/Standard_Tank6703 LMDE7, 12 yr LM experience, "No obligation to enjoy" 29d ago
There is no "one size fits all" answer to this, which is why many of us just make a bash script of what we actually DID do.
It starts off as a simple text log, some copied and pasted and some hand-entered - as you are essentially asking for. You "did" keep notes of everything, right? If not, then don't blow away your working HDD/SSD. Take it out of your machine and set it off to the side. Don't overwrite it. When you have an issue, you can retrace your steps on the old load. And document it this time in your text log.
Then the rest is just an adaptation of that into a bash script. Since most of it speaks for itself, it remains a log - a "living" document.
1
u/the-last-user 28d ago
In the past I used a utility called aptik to do parts of this, however it appears to have become unmaintained. For apt packages I used
dpkg --get-selections > packages.txton the old OS, ran it again on the clean install outputting tocleanpackages.txt, then used both files to get a list of only the packages that had been manually installed (or pulled in as dependencies) on the old OS:cat packagelist.txt cleanpackagelist.txt | sort | uniq -u > uniquepackges.txtAs long as you are using the exact same OS version and architectureuniquepackages.txtshould be pretty good, but you will of course want to manually review it (otherwise what is the point of a clean OS install). Once you are satisfied with the list of packages and have all your repos configured, you can run a script like this to semi-automatically reinstall your debs on the clean OS install:This lets you see any errors and deal with them before proceeding (unlike a fully automatic process).
If you reinstall to a different drive you can also mount the old one and do file compares (such as everything under /etc/) to look for different/missing files. I may have used Meld for this, but it has been a while.