Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

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 an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...