Skip to content

Chiogros/FixR-PM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FixR-PM

for FixRPM, or FixR-Package Manager

Feeling sad after doing a rm -rf /var/lib/rpm? FixR gets you covered!

It is a all-in-one shell (non POSIX) script which:

  • scan folders where packages usually store files (binaries, config, libraries, ...)
  • try to find a corresponding package in your distribution which bring those files
  • download the packages
  • install the packages without doing any modification to your files, only to update RPM database

Getting started

Download FixR script:

# You may use wget or cul, depending on the one installed on your system
$ wget https://github.com/Chiogros/FixR-PM/raw/refs/heads/main/fixr-pm.sh
$ curl https://github.com/Chiogros/FixR-PM/raw/refs/heads/main/fixr-pm.sh -o fixr-ph.sh

Execute FixR:

Warning

While running, it may download from MB to GB of files depending on how many packages you had installed. Make sure to move the script to a mounted partition with enough free space.

$ sudo ./fixr-pm.sh
[...] a lot of output...

Refresh system package manager:

Note

If you encounter error messages about conflicting packages, pick any that you may have never installed and remove them (dnf remove).

$ sudo dnf update

About

Save your life by recreating RPM database.

Topics

Resources

Security policy

Stars

Watchers

Forks

Languages