Safe to remove /var/cache/apt/sources?

Started by patrik, 2015/07/01, 19:28:37

Previous topic - Next topic

patrik

I have 5.8 GB *.dsc, .*orig.tar.xz and *.debian.tar.xz files in /var/cache/apt/sources. Is it safe to remove them? What ist the proper way to remove them? Is there an apt command to do this?

I already removed the deb-src lines from /etc/apt/sources.list.d/debian.list.

Thank you guys.

patrik

dibl

Quote from: patrik on 2015/07/01, 19:28:37
I have 5.8 GB *.dsc, .*orig.tar.xz and *.debian.tar.xz files in /var/cache/apt/sources.


???


There is no such directory in a standard Debian or siduction system.  Do you mean /var/cache/apt/archives?  In a root terminal, issue


apt-get clean and then check again with du for excessive disk usage.
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

michaa7

As an less comprehensive deletion you may issue: apt-get autoclean
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

patrik

I actually mean /var/cache/apt/sources. And I tried apt-get clean but this has no effect on the files in /var/cache/apt/sources. I have no idea why I have such a directory. Maybe I did something I can not remember.

Thanks

patrik