dCore sce-debpurge Command
The sce-debpurge
command is a system maintenance command used to purge deprecated, unneeded or all DEB (Debian package files) and *.tar.gz files from /etc/sysconfig/tcedir/import/debs. The primary purpose is to free disk space. Purging these files will not break functionality of any existing SCE extensions.
Note running sce-debpurge -a
(purge all) will require many of these purged files to be re-downloaded to rebuild SCEs during updates or re-imports. From a practical perspective the purge all command is, therefore, only useful for systems with limited drive space or if no additional imports or update checks are planned. For most systems the sce-debpurge
(remove deprecated only) and sce-debpurge -n
(remove files no longer needed by existing SCEs) commands are more useful.
Running sce-debpurge
creates the temporary files /tmp/.debpurged and /tmp/.debpurgedsize. Although typically of minimal importance, the /tmp/.debpurged file remains available afterward should the user later wish to review the list of removed files.
Usage options from the 'sce-debpurge –help' command:
sce-debpurge - Purge deprecated, unneeded or all DEB (Debian package files) and *.tar.gz files from /etc/sysconfig/tcedir/import/debs. Usage: sce-debpurge Update DEBINX files (Debian Index files located in /etc/ sysconfig/tcedir/import/debinx), purge deprecated DEBs. sce-debpurge -p Preserve local DEBINX files, purge deprecated DEBs based on current index. sce-debpurge -a Purge all files from /etc/sysconfig/tcedir/import/debs, including *.deb and *.tar.gz, note purged files will need to be re-downloaded to rebuild SCEs during updates or re-imports. sce-debpurge -n Purge files in /etc/sysconfig/tcedir/import/debs not needed to update or re-import any existing system SCEs.