diff options
author | Shipwreckt <shipwreckt@mailfence.com> | 2024-08-23 21:15:50 +0100 |
---|---|---|
committer | Shipwreckt <shipwreckt@mailfence.com> | 2024-08-23 21:15:50 +0100 |
commit | e3755046bcb50082742ff1d393b077bc8974e309 (patch) | |
tree | 3c048377eef287af9164ced1095ffcb01b45e976 /public/articals/linux/ArchLinux | |
parent | f98ea96668786d92862d990919831b57bad73cc1 (diff) |
Added articals about Linux!
Diffstat (limited to 'public/articals/linux/ArchLinux')
-rw-r--r-- | public/articals/linux/ArchLinux/00CleaningArchLinux | 56 | ||||
-rw-r--r-- | public/articals/linux/ArchLinux/01SpeedingUpArchLinux | 61 |
2 files changed, 117 insertions, 0 deletions
diff --git a/public/articals/linux/ArchLinux/00CleaningArchLinux b/public/articals/linux/ArchLinux/00CleaningArchLinux new file mode 100644 index 0000000..8c5ad81 --- /dev/null +++ b/public/articals/linux/ArchLinux/00CleaningArchLinux @@ -0,0 +1,56 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Cleaning Arch Linux</title> + <link rel="stylesheet" href="../../../styles.css"> + <link rel="icon" href="../../../Images/favi.png" type="image/x-icon"> +</head> +<body> + <header> + <nav> + <ul> + <li><a href="../../../index.html">Home</a></li> + <li><a href="../../../links.html">Links</a></li> + <li><a href="../../../projects.html">Projects</a></li> + <li><a href="../../../contact.html">Contact</a></li> + </ul> + </nav> + </header> + <main class="description"> + <h1>How to Clean Arch Linux ๐งน</h1> + <h3>Date: 21-7-2024</h3> + <p>In this artical I will be telling you how to clean up your <a href="https://archlinux.org">Arch Linux system</a> in the same way I do so.</p> + <hr> + <h2>Package Cache</h2> + <p>The first thing you want to do is clean the Pacman cache, as Pacman does not automatically clean it. This is because Pacman retains the cache in case you need to downgrade a package or reinstall it after uninstalling. To clean the cache, use the following commands:</p> + <div class="code-box"> + <p>sudo pacman -Sc # Remove packages from cache not installed</p> + <p>sudo pacman -Scc # Remove packages from cache both installed and not installed</p> + </div> + <p>Some people like to automate this task of cleaning the cache with <a href="https://wiki.archlinux.org/title/Pacman#Cleaning_the_package_cache">paccache</a>, but personally I would not because it is something that takes around five minutes max to do. However, it is your choice if you want to do so to avoid the trouble of doing it manually. Regardless of whether you choose to do this manually or automatically, I suggest cleaning the cache monthly. +</p> + <hr> + <h2>Removing Orphan Packages</h2> + <p>Orphan packages are those installed as dependencies for other software but are no longer needed. For example, when you install <a href="https://librewolf.net/">LibreWolf</a>, it downloads a package called librewolf-debug as a dependency. Once the installation is complete, librewolf-debug becomes an orphan package because it is no longer used by LibreWolf.</p> + + <div class="code-box"> + <p>sudo pacman -Qtdq # Identify orphan packages</p> + <p>sudo pacman -Rns $(pacman -Qtdq) # Uninstall orphan packages</p> + </div> + <p>I suggest uninstalling Orphan packages every month or so, just like cleaning the Pacman cache.</p> + <hr> + <h2>Cache</h2> + <p>Sometimes you want to clean out the ~/.cache directory, as it can accumulate a large number of files from various programs on your system. The cache directory contains temporary files used by different applications to speed up their processes. In general, it is safe to delete all items in this directory, but be cautious if you have specific applications with unusual caching mechanisms. To clean the cache directory run the following command:</p> + <div class="code-box"> + <p>rm -rf ~/.cache/* # Clear the cache directory</p> + </div> + <hr> + <center> + <p>That is all for now, I hope this artical has helped you clean your system.</p> + <pre text-align=center> <a href="../../linuxlist">Back</a> + </main> +</body> +</html> + diff --git a/public/articals/linux/ArchLinux/01SpeedingUpArchLinux b/public/articals/linux/ArchLinux/01SpeedingUpArchLinux new file mode 100644 index 0000000..f70eccc --- /dev/null +++ b/public/articals/linux/ArchLinux/01SpeedingUpArchLinux @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Speeding up Pacman ๐</title> + <link rel="stylesheet" href="../../../styles.css"> + <link rel="icon" href="../../../Images/favi.png" type="image/x-icon"> +</head> +<body> + <header> + <nav> + <ul> + <li><a href="../../../index.html">Home</a></li> + <li><a href="../../../links.html">Links</a></li> + <li><a href="../../../projects.html">Projects</a></li> + <li><a href="../../../contact.html">Contact</a></li> + </ul> + </nav> + </header> + <main class="description"> + <h1>How to speed up Pacman ๐</h1> + <h3>Date: 23-7-2024</h3> + <hr> + <p>It is very easy to speed up Pacman, and we can do it in a few easy steps, so follow this guide, and your favourite package manager will be fast as anything!</p> + <hr> + <h2>Pacman.conf</h2> + <p>Pacman can download packages in parallel, meaning you are able to download more than one package at a time, which makes the process of installing and updating packages way faster!</p> + + <p>The first thing you want to do is go to the location of pacman.conf, which is located in <b>/etc/pacman.conf</b>. So you would want to run a command like this but with your preferred text editor:</p> + <div class=code-box> + <p>sudo nvim /etc/pacman.conf</p> + </div> + <p>Now that you are in the configuration file, you want to navigate to a section where it says <b>Misc options</b>. You want to uncomment the line where it says <b>'ParallelDownloads.'</b> It should look something like this:</p> + <div class=code-box> + <p># Misc options<br> + #UseSyslog<br> + Color<br> + #NoProgressBar<br> + CheckSpace<br> + #VerbosePkgLists<br> + ParallelDownloads = 5<br> + ILoveCandy</p> + </div> + <p>If you have a keen eye, you may have spotted the last line, which says 'I Love Candy,' and the reason why this line is here is because it gives the Pacman prompt when you run it a bit of styal with the pound signs being replaced with Pacman!</p> + <hr> + <h2>Mirrors ๐ช</h2> + <p>If you did not know, a mirror is a server where the packages you install are hosted. Ideally, you want to download all of your packages from the fastest mirrors, so let me show you how to do that!</p> + <p>The first thing you will need to do is install the reflector program and run the reflector command.</p> + <div class=code-box> + <p>sudo pacman -S reflector<br> sudo reflector --latest 10 --sort rate --save /etc/pacman.d/mirrorlist<br>sudo pacman -Syy # To update package list from server</p> + </div> + <p>After running this command, your download speed should be way faster!</p> + <hr> + <center> + <p>I hope this has helped you in making Pacman not only look better but function better!</p> + <pre text-align=center> <a href="../../linuxlist">Back</a> + </main> +</body> +</html> + |