A Script to Tidy a Cache of RPM Files. #Rpm cache #Tidy cache #Disk space usage #Tidy #Rpm #Cache
tidy-rpm-cache is a script that may be useful if you wish to minimize the disk space usage of locally stored update packages.
The tidy-rpm-cache.py script deletes obsolete package files by comparing the version information of all RPM files which provide the same software package. You can specify any number of paths of directories to search and you can also exclude specific packages from being tested for obsolescence.
To run this script, simply specify the path of a directory containing RPM package files using the --dir option. For example, to tidy the directory /tmp/packages, execute the following command:
tidy-rpm-cache.py --dir=/tmp/packages
The script will display a list of RPM packages it has deemed as obsolete and ask for confirmation before deleting them from the filesystem. To disable the confirmation message, add the --force option.
The script does not require any special installation procedure and can be run from any location. You may however need to execute it as root in order to be able to actually delete files. The following example shows how to copy the script to a location that is accessible by all users:
cd /tmp tar xzf tidy-rpm-cache-rev*.tar.gz cp tidy-rpm-cache/tidy-rpm-cache.py /usr/local/bin/
The package includes a file called README.txt which contains documentation for the script.
The command-line options for this script are summarised below and also at the top of the source file tidy-rpm-cache.py. You may wish to use the Python tool pydoc to view the documentation in the source file in a man-style format or to generate a HTML version of the documentation.
System requirements
tidy-rpm-cache 1232
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- filename:
- tidy-rpm-cache-rev1232.tar.gz
- main category:
- System
- developer:
- visit homepage
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work
ShareX 16.0.1
7-Zip 23.01 / 24.04 Beta
Zoom Client 6.0.0.37205
paint.net 5.0.13 (5.13.8830.42291)
Windows Sandbox Launcher 1.0.0
IrfanView 4.67
Bitdefender Antivirus Free 27.0.35.146
calibre 7.9.0
- IrfanView
- Bitdefender Antivirus Free
- calibre
- 4k Video Downloader
- Microsoft Teams
- ShareX
- 7-Zip
- Zoom Client
- paint.net
- Windows Sandbox Launcher