Pacman is BLOATING Up My System! (Cleaning the cache in Arch Linux)

  Рет қаралды 6,629

Eric Murphy

Eric Murphy

Күн бұрын

Is your disk space constantly getting filled up by pacman's bottomless cache in Arch Linux? In this video, I'll teach you how to clear the cache with paccache, save old versions of packages in case of breakage, and how to automate the whole process. As a bonus, I'll even show you how to automatically clean up after your AUR helper (e.g. paru or yay), too. You'll never have to worry about your package manager bloating your package cache to infinity again...
My paccache-clear script: gist.github.com/ericmurphyxyz...
luukvbaal's pacman hooks: gist.github.com/luukvbaal/2c6...
albertored11's script: gist.github.com/albertored11/...
Watch my videos on Odysee: odysee.com/@ericnmurphy
My website: ericmurphy.xyz
My GitHub: github.com/ericmurphyxyz
0:00 Intro
1:59 Checking the size of your pacman cache
2:29 Clearing your cache with pacman -Sc
3:35 Using paccache to save past versions
5:49 Cleaning your AUR helper cache (e.g. yay or paru)
6:54 Creating a script to automate
8:38 Automating the cleanup with a cron job
9:20 Automating cleanup with a pacman hook
10:46 Conclusion

Пікірлер: 27
@tonyravindran
@tonyravindran Жыл бұрын
A very useful video especially for a beginner like me. I use Arch Linux and just two weeks ago, my root directory of 20 GB was nearly full and it was suggested to clean my cache sub-directory. I just ran sudo pacman -Scc. I did not know any better. I did this and later used garted to increase my root partition to 70 GB. This video is quite useful to me. Thanks Eric
@EricMurphyxyz
@EricMurphyxyz Жыл бұрын
Glad it helped!
@Zer0sVoid
@Zer0sVoid Жыл бұрын
A good reminder for those who already may have this set. For me, it's time to reclaim some storage. Thanks for another wonderful guide.
@DrunkenUFOPilot
@DrunkenUFOPilot Жыл бұрын
I had no idea about all this until last summer. I just landed a remote job. Did a routine system upgrade but... what? My partition with / is full? I had to do my first week or so of the new job on a dusty old Jetson TX2. I found the pacman -Sc command somewhere, freed up 2/3 of that partition, and life went back to normal. Except for the car not working, but that's another story. I'm keeping a link to this video in my sys admin notes in case I ever forget again.
@EricMurphyxyz
@EricMurphyxyz Жыл бұрын
I can help with everything except for the car 😉
@VictoriaMan69
@VictoriaMan69 Жыл бұрын
Very helpful. I just cleared like 30 gigs from my arch vm. Thanks!
@Awwe12675
@Awwe12675 Жыл бұрын
This channel is really useful
@fosstera
@fosstera Жыл бұрын
Thanks for this, i forgot to clean all that out and its been building up for a while. recovered 28.9 gigs of storage space
@allsunday1485
@allsunday1485 Жыл бұрын
how did you list the folder content while writing the command?
@c3cxla
@c3cxla Жыл бұрын
install gentoo
@DCM777.
@DCM777. Жыл бұрын
No!
@DCM777.
@DCM777. Жыл бұрын
@@honeynap5488 Yeah like hell! Evil distro just like bsd!
@iyamroshan
@iyamroshan Жыл бұрын
Sexy
@jonatansexdoer96
@jonatansexdoer96 Жыл бұрын
This guy looks like he's in his 20s. Sadly, life expectancy says he only has about 60 years left to live so he probably won't be able to do that
@bruhboi9938
@bruhboi9938 Жыл бұрын
whats the best arch based ditro(ur opinion)??
@ehhwhatevericantthinkofago8903
@ehhwhatevericantthinkofago8903 Жыл бұрын
Endever OS if you want something very easy to install or just default arch with an install script, install scripts just make it so you dont have to type in all of the commands by hand, Brodie Robertson has a lot of vids good on install scripts
@Zer0sVoid
@Zer0sVoid Жыл бұрын
I'm personally biased towards EndeavourOS as it's my daily driver. You can choose to use a DE or WM straightoff the bat. From there you can install to your hearts content with what you need. Do keep in mind EndeavourOS is very much encourages by default to use the terminal.
@EricMurphyxyz
@EricMurphyxyz Жыл бұрын
Yeah I still just recommend vanilla arch. I've tried other arch based distros but they haven't impressed me enough to switch. Install it once manually to prove you're not a noob (it's not that hard) and then use an install script after that
@Zer0sVoid
@Zer0sVoid Жыл бұрын
@@EricMurphyxyz Oh my, Eric here with the Alpha answer.
@ehhwhatevericantthinkofago8903
@ehhwhatevericantthinkofago8903 Жыл бұрын
​@@EricMurphyxyz I would generally agree with the caveat that you should probably install vanilla arch in a virtual machine at least once before you actually install it on bare metal. It's a little too easy to mess something up If you don't know where to start(recent KZfaq videos and the arch wiki) and don't have at least a little experience with Linux. I do say though that going through a manual installation is very useful for learning how your system works. But I still feel there is no shame in using an install script if you want to play it safe on real hardware.
@torphedo6286
@torphedo6286 5 ай бұрын
At least in yay, you can just run "yay -Scc".
@vicentcarro
@vicentcarro Жыл бұрын
Hi Eric, just curious what things can’t Pop OS! do while Arch can?
@EricMurphyxyz
@EricMurphyxyz Жыл бұрын
Pop OS is fine, but I like Arch because it doesn't come with anything by default (I always end up removing a lot of software I will never use) and the AUR (arch user repository) makes it really easy to install a lot of software. Those are the main benefits for me. But if you like using Pop OS, by all means keep using it
@vanodon2257
@vanodon2257 Жыл бұрын
Run latest tripple a games... legit gained 12fps from latest vkd3d updates and 2fps from latest winestaging in cyberpunk2077. Also poopOS doesnt have an AUR and mpr is not enabled by default for some reason. The poopos semi rolling version is fine since you able to get usabled gaming performance without the latest updates
@aditeya1024
@aditeya1024 Жыл бұрын
Another useful tool is downgrade on the AUR. If you've cleared you cache and realise you need to downgrade a package, you can downgrade the package using the downgrade tool.
@EricMurphyxyz
@EricMurphyxyz Жыл бұрын
I've done it manually before, but that sounds like a much easier way to do it
@aditeya1024
@aditeya1024 Жыл бұрын
@@EricMurphyxyz it really is, highly recommend!
I'm BREAKING UP With Bash (Using dash as /bin/sh)
12:42
Eric Murphy
Рет қаралды 5 М.
You NEED to know this before using an AUR Helper...
11:17
Eric Murphy
Рет қаралды 8 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 22 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 14 МЛН
Simulating the Evolution of Rock, Paper, Scissors
15:00
Primer
Рет қаралды 331 М.
These Pacman Scripts Should Ship With Arch Linux
10:52
Brodie Robertson
Рет қаралды 8 М.
On Arch Linux, The AUR Is Good. But The Chaotic AUR Is GREAT!
10:06
Nobody Understands Online Privacy.
14:11
Eric Murphy
Рет қаралды 173 М.
Using Pacman on Arch Linux: Everything you need to know
17:44
Luke Smith
Рет қаралды 192 М.
Online Ads Are Getting Out of Control
10:41
Eric Murphy
Рет қаралды 189 М.
Pacman On Other Distros, How To and Why You Shouldn't
12:05
Mental Outlaw
Рет қаралды 39 М.
Say Goodbye to Containers - Ephemeral Environments with Nix Shell
16:58
~/.dotfiles in 100 Seconds
13:54
Fireship
Рет қаралды 410 М.
zoxide has forever improved the way I navigate in the terminal.
9:53
Dreams of Autonomy
Рет қаралды 426 М.
Как слушать музыку с помощью чека?
0:36
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 219 М.
Первый обзор Galaxy Z Fold 6
12:23
Rozetked
Рет қаралды 438 М.
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 12 МЛН