Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  Safe to remove /var/cache/apt/sources?  (Read 1748 times)

patrik

  • Guest
Safe to remove /var/cache/apt/sources?
« 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. 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

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
Re: Safe to remove /var/cache/apt/sources?
« Reply #1 on: 2015/07/01, 22:59:10 »
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


Code: [Select]
apt-get clean and then check again with du for excessive disk usage.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline michaa7

  • User
  • Posts: 2.300
Re: Safe to remove /var/cache/apt/sources?
« Reply #2 on: 2015/07/01, 23:46:11 »
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

  • Guest
Re: Safe to remove /var/cache/apt/sources?
« Reply #3 on: 2015/07/02, 10:30:06 »
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