Jump to content
Forums in Read-Only Mode - Please use Reddit ×

Shell command/script for cleaning out /usr/portage/distfiles


Recommended Posts

Does anyone have a shell command or script that will delete *.tar.foo files out of /usr/portage/distfiles with the exception of those that relate to currently merged packages?

 

Such a command would be fantastic for recovering storage space while at the same time avoiding the repeated downloading of existing packages (for example, when a USE flag is changed).

 

 

Link to comment
Share on other sites

Does anyone have a shell command or script that will delete *.tar.foo files out of /usr/portage/distfiles with the exception of those that relate to currently merged packages?

 

Such a command would be fantastic for recovering storage space while at the same time avoiding the repeated downloading of existing packages (for example, when a USE flag is changed).

 

eclean -d distfiles

Does the job for me.

Link to comment
Share on other sites

×
×
  • Create New...