Author Topic: Cleaning the Pacman Cache  (Read 220 times)

0 Members and 1 Guest are viewing this topic.

Offline anon_private

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Cleaning the Pacman Cache
« on: May 06, 2018, 03:38:51 pm »
Hello,

I have looked at the pacman cache and I see many tar.xv files. I cannot see any obvious orpphan files (but I dont know what to look for).

My question is is it safe to use pacman -Sc?

Further, I have tooked at Octopi and see the cache cleaner. If  I use this function will it wipe out the cache, or, will it just remove the unnecessary files?

Thanks

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17646
  • Karma: 456
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Cleaning the Pacman Cache
« Reply #1 on: May 08, 2018, 05:43:30 pm »
Do you for some reason want to keep cached versions of installed packages ? .. but want to clear all cached packages that are NOT installed ?

First I should explain I'm not an Arch aficionado...

But, according to the manpage:-
Code: [Select]
pcman -Sc
if on the other hand you want to remove ALL cached packages (emptying the package cache):-
Code: [Select]
pcman -Sc
If I'm understanding it properly, neither command should uninstall anything .. it's just that the double "cc" option is equivalent to APT's "apt-get clean"

If I had to "guess", I'd guess Octopi's cache cleaner will probably remove ALL cached packages .. but it's unlikely to actually uninstall anything either .. again (probably) the same as APT's "apt-get clean" or "pacman -Scc".
« Last Edit: May 08, 2018, 05:46:11 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal