Earlier this year, I built a new PC and it’s running Ubuntu. I’ve been installing various apps and configuring them since then. Now, I realize I don’t have any way of knowing what I would want to reinstall, if I (for instance) lost this drive somehow.

How do you keep track of what you’ve installed/ your favorite apps?

Separately, how can I backup the configurations I’m using right now.

Thanks!

  • cleric_splash@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    1 year ago
    function pkglist -d "Gets list of installed packages"
      # Prevent descriptions in other languages
      set -l LANG C
      # Define pkglists location
      set -l dot $HOME/.config/dotfiles
    
      echo "(1/5) RPM-OSTREE status"
      rpm-ostree status > $dot/pkglist.rpm-ostree --booted
    
      echo "(2/5) Identify flatpaks"
      flatpak list --app --columns=application > $dot/pkglist.flatpak
    
      echo "(3/5) Identify pinned flatpak runtimes"
      flatpak pin > $dot/pkglist.flatpak.pinned
    
      echo "(4/5) Identify flatpak overrides"
      for i in (cat $dot/pkglist.flatpak)
          if test -s (flatpak override --show --user $i|psub)
    	  echo $i
    	  flatpak override --show --user $i
    	  echo
          end
      end > $dot/pkglist.flatpak.overrides
    
      echo "(5/5) Save KDE configuration"
      fedora konsave -s kde_configuration --force
    
      # to apply configuration
      # fedora konsave -a kde_configuration
    
      git -C $dot st
    end