-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
121 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
|
||
<title>Arch Pacman Cheatsheet</title> | ||
|
||
<!-- Bootstrap CDN --> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css"> | ||
|
||
<!-- CSS --> | ||
<link rel="stylesheet" href="assets/style.css"> | ||
</head> | ||
|
||
<body data-theme="light"> | ||
<div class="container"> | ||
<!-- Theme Toggle --> | ||
<div class="button float-end"><i class="bi bi-circle-half"></i></div> | ||
|
||
<h3 class="title">Arch Pacman</h3> | ||
|
||
<div class="section-list"> | ||
<ul> | ||
<li><a href="#install">Install Package</a></li> | ||
<li><a href="#query">Query Package</a></li> | ||
<li><a href="#remove">Remove Package</a></li> | ||
<li><a href="#clean">Clean Package</a></li> | ||
</ul> | ||
</div> | ||
|
||
<div class="sections" id="install"> | ||
<h4 class="heading"># Install Package</h4> | ||
<div> | ||
<h6>Full System Upgrade</h6> | ||
<div class="code-box"><code>pacman -Syu</code></div> | ||
|
||
<h6>Update Package Database</h6> | ||
<div class="code-box"><code>pacman -Syy</code></div> | ||
|
||
<h6>Install Package</h6> | ||
<div class="code-box"><code>pacman -S [package]</code></div> | ||
|
||
<h6>Download Package</h6> | ||
<div class="code-box"><code>pacman -Sw [package]</code></div> | ||
<p>Download Path: <code>/var/cache/pacman/pkg</code></p> | ||
|
||
<h6>Install Downloaded Package</h6> | ||
<div class="code-box"><code>pacman -U [package]</code></div> | ||
</div> | ||
</div> | ||
|
||
<div class="sections" id="query"> | ||
<h4 class="heading"># Query Package</h4> | ||
<div> | ||
<h6>Search Package</h6> | ||
<div class="code-box"><code>pacman -Ss [package]</code></div> | ||
|
||
<h6>List Installed Packages</h6> | ||
<div class="code-box"><code>pacman -Q</code></div> | ||
|
||
<h6>Search Installed Package</h6> | ||
<div class="code-box"><code>pacman -Qs [package]</code></div> | ||
|
||
<h6>List Explictly Installed Packages</h6> | ||
<div class="code-box"><code>pacman -Qe</code></div> | ||
|
||
<h6>Package Information</h6> | ||
<div class="code-box"><code>pacman -Si [package]</code></div> | ||
|
||
<h6>Installed Package Information</h6> | ||
<div class="code-box"><code>pacman -Qi [package]</code></div> | ||
</div> | ||
</div> | ||
|
||
<div class="sections" id="remove"> | ||
<h4 class="heading"># Remove Package</h4> | ||
<div> | ||
<h6>Remove Package</h6> | ||
<div class="code-box"><code>pacman -R [package]</code></div> | ||
|
||
<h6>Remove Package & Dependencies</h6> | ||
<div class="code-box"><code>pacman -Rs [package]</code></div> | ||
|
||
<h6>Remove Package, Dependencies & Configs</h6> | ||
<div class="code-box"><code>pacman -Rns [package]</code></div> | ||
</div> | ||
</div> | ||
|
||
<div class="sections" id="clean"> | ||
<h4 class="heading"># Clean System</h4> | ||
<div> | ||
<h6>List Orphan/Obsolete Packages</h6> | ||
<div class="code-box"><code>pacman -Qtdq</code></div> | ||
|
||
<h6>Remove Orphan/Obsolete Packages</h6> | ||
<div class="code-box"><code>pacman -Rns $(pacman -Qtdq)</code></div> | ||
|
||
<h6>Remove Uninstalled Cached Packages</h6> | ||
<div class="code-box"><code>pacman -Sc</code></div> | ||
|
||
<h6>Remove Cached Packages (all)</h6> | ||
<div class="code-box"><code>pacman -Scc</code></div> | ||
</div> | ||
</div> | ||
|
||
<!-- Navigation Buttons --> | ||
<nav> | ||
<a href="https://itspatkar.github.io/Cheatsheets/"><i class="bi bi-arrow-left-square-fill"></i></a> | ||
<a href="#" class="float-end"><i class="bi bi-arrow-up-square-fill"></i></a> | ||
</nav> | ||
</div> | ||
|
||
<!-- JavaScript --> | ||
<script src="assets/script.js"></script> | ||
</body> | ||
</html> |