<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pacman - Hamradio.my</title>
	<atom:link href="https://hamradio.my/tag/pacman/feed/" rel="self" type="application/rss+xml" />
	<link>https://hamradio.my/tag/pacman/</link>
	<description>Amateur Radio, Tech Insights and Product Reviews</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:31:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://hamradio.my/wp-content/uploads/2026/02/cropped-cropped-image-removebg-preview-3-32x32.png</url>
	<title>pacman - Hamradio.my</title>
	<link>https://hamradio.my/tag/pacman/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Memorize Most Useful Pacman Commands</title>
		<link>https://hamradio.my/2025/06/memorize-most-useful-pacman-commands/</link>
					<comments>https://hamradio.my/2025/06/memorize-most-useful-pacman-commands/#respond</comments>
		
		<dc:creator><![CDATA[9M2PJU]]></dc:creator>
		<pubDate>Sat, 28 Jun 2025 14:30:17 +0000</pubDate>
				<category><![CDATA[archlinux]]></category>
		<category><![CDATA[cachyos]]></category>
		<category><![CDATA[free operating system]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[package management]]></category>
		<category><![CDATA[beginner friendly]]></category>
		<category><![CDATA[cheat sheet]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux guide]]></category>
		<category><![CDATA[package manager]]></category>
		<category><![CDATA[pacman]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[terminal]]></category>
		<guid isPermaLink="false">https://hamradio.my/?p=8055</guid>

					<description><![CDATA[<p>If you&#8217;re running Arch Linux, or anything Arch-based like CachyOS, you already know that pacman is one of the core tools you&#8217;ll use—probably daily. But let’s be real: remembering all those -S, -R, -Q, and -Syu flags gets confusing fast. I used to look them up constantly (even for simple stuff), until I sat down [&#8230;]</p>
<p>The post <a href="https://hamradio.my/2025/06/memorize-most-useful-pacman-commands/">Memorize Most Useful Pacman Commands</a> appeared on <a href="https://hamradio.my">Hamradio.my - Amateur Radio, Tech Insights and Product Reviews</a> by <a href="https://hamradio.my/author/9m2pju/">9M2PJU</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">If you&#8217;re running <a href="https://archlinux.org/">Arch Linux</a>, or anything Arch-based like <a href="https://cachyos.org/">CachyOS</a>, you already know that <code>pacman</code> is one of the core tools you&#8217;ll use—probably daily.</p>



<p class="wp-block-paragraph">But let’s be real: remembering all those <code>-S</code>, <code>-R</code>, <code>-Q</code>, and <code>-Syu</code> flags gets confusing fast. I used to look them up constantly (even for simple stuff), until I sat down and made a simple system to actually remember them.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f527.png" alt="🔧" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Basic Concept: Think in Categories</h2>



<p class="wp-block-paragraph">Rather than memorizing every command individually, we grouped them by what we needed to do. Just like you&#8217;d do in real life:</p>



<ul class="wp-block-list">
<li>Install something</li>



<li>Remove something</li>



<li>Search for something</li>



<li>Get information</li>



<li>Clean things up</li>
</ul>



<p class="wp-block-paragraph">Turns out, <code>pacman</code> follows this logic really well.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Install &amp; Update Packages</h2>



<p class="wp-block-paragraph"><strong>Install a package</strong>:</p>



<pre class="wp-block-code"><code>pacman -S &lt;package&gt;
</code></pre>



<p class="wp-block-paragraph"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Remember <code>-S</code> as “Send it to me” (Sync from the repository).</p>



<p class="wp-block-paragraph"><strong>Update everything (the Arch way)</strong>:</p>



<pre class="wp-block-code"><code>pacman -Syu
</code></pre>



<p class="wp-block-paragraph"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Mnemonic: “<strong>S</strong>ync, refresh the repos with <strong>y</strong>, and <strong>u</strong>pdate everything.”</p>



<p class="wp-block-paragraph">You’ll use this more than anything else.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f5d1.png" alt="🗑" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Remove Packages (Cleanly!)</h2>



<p class="wp-block-paragraph"><strong>Remove a package</strong>:</p>



<pre class="wp-block-code"><code>pacman -R &lt;package&gt;
</code></pre>



<p class="wp-block-paragraph">Just deletes the program—not configs or dependencies.</p>



<p class="wp-block-paragraph"><strong>Full, squeaky-clean removal</strong>:</p>



<pre class="wp-block-code"><code>pacman -Rns &lt;package&gt;
</code></pre>



<p class="wp-block-paragraph"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <code>Rns = Remove Neatly &amp; Squeaky</code> — it deletes the package, its unused dependencies, and leftover config files. I use this when I&#8217;m done testing something.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f50d.png" alt="🔍" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Searching for Packages</h2>



<p class="wp-block-paragraph"><strong>Search available packages (online repo)</strong>:</p>



<pre class="wp-block-code"><code>pacman -Ss &lt;keyword&gt;
</code></pre>



<p class="wp-block-paragraph"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <code>Ss</code> = <em>Search Store</em></p>



<p class="wp-block-paragraph"><strong>Search only installed packages</strong>:</p>



<pre class="wp-block-code"><code>pacman -Qs &lt;keyword&gt;
</code></pre>



<p class="wp-block-paragraph"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <code>Qs</code> = <em>Query System</em></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4c4.png" alt="📄" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Package Information</h2>



<p class="wp-block-paragraph"><strong>Get info about a package in the repo</strong>:</p>



<pre class="wp-block-code"><code>pacman -Si &lt;package&gt;
</code></pre>



<p class="wp-block-paragraph"><strong>Get info about an installed package</strong>:</p>



<pre class="wp-block-code"><code>pacman -Qi &lt;package&gt;
</code></pre>



<p class="wp-block-paragraph"><strong>List all files a package installed</strong>:</p>



<pre class="wp-block-code"><code>pacman -Ql &lt;package&gt;
</code></pre>



<p class="wp-block-paragraph"><strong>Find out what package owns a file</strong>:</p>



<pre class="wp-block-code"><code>pacman -Qo /path/to/file
</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9f9.png" alt="🧹" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Cleanups &amp; Maintenance</h2>



<p class="wp-block-paragraph">Arch doesn&#8217;t clean up after itself by default, so we run these occasionally:</p>



<p class="wp-block-paragraph"><strong>Remove orphaned packages (leftovers)</strong>:</p>



<pre class="wp-block-code"><code>pacman -Rns $(pacman -Qdtq)
</code></pre>



<p class="wp-block-paragraph"><strong>Clean the package cache (but keep most recent)</strong>:</p>



<pre class="wp-block-code"><code>pacman -Sc
</code></pre>



<p class="wp-block-paragraph"><strong>Clean EVERYTHING in the cache</strong>:</p>



<pre class="wp-block-code"><code>pacman -Scc
</code></pre>



<p class="wp-block-paragraph"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <code>Scc</code> = <em>Super clean cache</em> (but be careful—you’ll need to re-download packages later).</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/26a0.png" alt="⚠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Bonus: Troubleshooting Tools</h2>



<p class="wp-block-paragraph">These aren’t used often, but they’re lifesavers:</p>



<ul class="wp-block-list">
<li><strong>Check missing files from installed packages</strong>: <code>pacman -Qk</code></li>



<li><strong>Mark a package as explicitly installed</strong>: <code>pacman -D --asexplicit &lt;package></code></li>



<li><strong>Mark it as a dependency instead</strong>: <code>pacman -D --asdeps &lt;package></code></li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Trick to Memorize Them All</h2>



<ul class="wp-block-list">
<li>We <strong>grouped</strong> all commands by action. Just ask yourself: <em>Am I installing? Searching? Cleaning?</em></li>



<li>Made up <strong>little mnemonics</strong>:
<ul class="wp-block-list">
<li><code>Syu</code> = “Sync Your Universe”</li>



<li><code>Rns</code> = “Remove Neatly &amp; Squeaky”</li>



<li><code>Ss</code> = “Search Store”</li>



<li><code>Qi</code> = “Query Installed”</li>
</ul>
</li>



<li><strong>Typed them often</strong>. Practice helps way more than reading.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4cc.png" alt="📌" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Final Cheat Sheet</h2>



<p class="wp-block-paragraph">Here’s a quick reference:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Action</th><th>Command</th><th>Reminder</th></tr></thead><tbody><tr><td>Install</td><td><code>pacman -S &lt;pkg&gt;</code></td><td>Sync</td></tr><tr><td>Update system</td><td><code>pacman -Syu</code></td><td>Sync Your Updates</td></tr><tr><td>Remove</td><td><code>pacman -R &lt;pkg&gt;</code></td><td>Remove</td></tr><tr><td>Remove clean</td><td><code>pacman -Rns &lt;pkg&gt;</code></td><td>Neat &amp; Squeaky</td></tr><tr><td>Search repo</td><td><code>pacman -Ss &lt;name&gt;</code></td><td>Search Store</td></tr><tr><td>Search installed</td><td><code>pacman -Qs &lt;name&gt;</code></td><td>Query System</td></tr><tr><td>Info (repo)</td><td><code>pacman -Si &lt;pkg&gt;</code></td><td>Show Info</td></tr><tr><td>Info (installed)</td><td><code>pacman -Qi &lt;pkg&gt;</code></td><td>Query Installed</td></tr><tr><td>Files by pkg</td><td><code>pacman -Ql &lt;pkg&gt;</code></td><td>Query List</td></tr><tr><td>Who owns file</td><td><code>pacman -Qo /file</code></td><td>Query Owner</td></tr><tr><td>Remove orphans</td><td><code>pacman -Rns $(pacman -Qdtq)</code></td><td>Clean Deps</td></tr><tr><td>Clean cache</td><td><code>pacman -Sc</code></td><td>Soft Clean</td></tr><tr><td>Clean ALL</td><td><code>pacman -Scc</code></td><td>Super Clean</td></tr></tbody></table></figure>
<p>The post <a href="https://hamradio.my/2025/06/memorize-most-useful-pacman-commands/">Memorize Most Useful Pacman Commands</a> appeared on <a href="https://hamradio.my">Hamradio.my - Amateur Radio, Tech Insights and Product Reviews</a> by <a href="https://hamradio.my/author/9m2pju/">9M2PJU</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hamradio.my/2025/06/memorize-most-useful-pacman-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
