• 4 Posts
  • 19 Comments
Joined 1 year ago
cake
Cake day: July 20th, 2023

help-circle











  • 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