handbook-maintaining.html (4333B)
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1"> 6 <title>Maintaining - Chamesle</title> 7 <meta name="description" content="The first gets the indexes, the second says what would change, the third does it."> 8 <link rel="canonical" href="https://chamesle.org/handbook-maintaining.html"> 9 <meta property="og:type" content="website"> 10 <meta property="og:site_name" content="Chamesle"> 11 <meta property="og:title" content="Maintaining - Chamesle"> 12 <meta property="og:description" content="The first gets the indexes, the second says what would change, the third does it."> 13 <meta property="og:url" content="https://chamesle.org/handbook-maintaining.html"> 14 <link rel="stylesheet" href="style.css?25"> 15 <link rel="icon" href="img/logo.png"> 16 </head> 17 <body> 18 19 <div id="page"> 20 21 <div id="top"> 22 <h1><a href="./"><img src="img/banner.png" alt="Chamesle Linux" width="223" height="56"></a></h1> 23 </div> 24 25 <div id="nav"> 26 <a href="./">Home</a> | 27 <a href="download.html">Download</a> | 28 <b>Handbook</b> | 29 <a href="packages.html">Packages</a> | 30 <a href="new.html">News</a> | 31 <a href="board.html">Board</a> | 32 <a href="chat.html">Chat</a> | 33 <a href="source.html">Source</a> | 34 <a href="https://x22.chamesle.org/">X22</a> | 35 <a href="https://github.com/tortr-rs/mag">mag</a> | 36 <a href="about.html">About</a> 37 </div> 38 39 <main> 40 <p><a href="handbook-iso.html">← The live ISO</a> | <a href="docs.html">Contents</a> | <a href="handbook-desktop.html">X and a window manager →</a></p> 41 <h2>9. Maintaining</h2> 42 <h2 id="s9-1">9.1 Updating</h2> 43 <pre>mag update 44 mag -n upgrade 45 mag upgrade</pre> 46 <p>The first gets the indexes, the second says what would change, the third does it.</p> 47 <h2 id="s9-2">9.2 Cleaning up</h2> 48 <pre>mag autoremove dependencies nothing needs any more 49 rm -rf /var/cache/mag/pkg downloaded packages; they are fetched again when needed</pre> 50 <h2 id="s9-3">9.3 Configuration files</h2> 51 <p>A changed file under <code>/etc</code> is never written over. When a package brings a new one, it lands next to yours as <code>NAME.new</code>. Look for them after an upgrade and merge by hand:</p> 52 <pre>find /etc -name '*.new'</pre> 53 <h2 id="s9-4">9.4 Failures you will see</h2> 54 <table> 55 <tr><th>what you see</th><th>why, and what to do</th></tr> 56 <tr><td><code>no package NAME</code></td><td>not in any repo; <code>mag search</code>, and <code>mag update</code></td></tr> 57 <tr><td>a signature or hash that does not match</td><td>the download or the index is not what the repo signed; <code>mag update</code> and try again, check <code>/etc/mag/keys</code></td></tr> 58 <tr><td><code>NAME wants FILE, which OTHER has</code></td><td>two packages want the same file; <code>-f</code> writes over it if you are sure</td></tr> 59 <tr><td>"root device not found" at boot</td><td>the initramfs cannot see the disk or the file system: check <code>root=</code> and <code>modules=</code> in <code>limine.conf</code></td></tr> 60 <tr><td>the machine boots to a limine prompt</td><td><code>limine.conf</code> is not found, or its <code>path:</code> does not name a file in <code>/boot</code>; check with <code>ls /boot</code></td></tr> 61 <tr><td>a BIOS machine does not boot</td><td><code>limine bios-install /dev/sda</code> was not run, or <code>limine-bios.sys</code> is not in <code>/boot</code></td></tr> 62 <tr><td>a UEFI machine does not boot</td><td><code>EFI/BOOT/BOOTX64.EFI</code> is not on the EFI partition, or the partition is not of type EFI System</td></tr> 63 <tr><td>no wireless interface</td><td>the firmware is missing (7.4); <code>dmesg</code> names the file</td></tr> 64 <tr><td>no devices in <code>/dev</code></td><td>udev did not start; <code>rc-service udev status</code></td></tr> 65 </table> 66 <hr> 67 <p><a href="handbook-iso.html">← The live ISO</a> | <a href="docs.html">Contents</a> | <a href="handbook-desktop.html">X and a window manager →</a></p> 68 </main> 69 70 <hr> 71 <div id="foot"> 72 Something wrong on this page? Tell us on the <a href="board.html">board</a>.<br> 73 Chamesle installs with <code>chamesle-install</code>, or by hand from the <a href="docs.html">handbook</a>.<br> 74 <a href="https://ko-fi.com/L6N725GI1V">Ko-fi</a><br> 75 <a href="#" id="edit-link">Edit text</a><br> 76 $Date: 2026-11-23 $ 77 </div> 78 79 </div> 80 81 <script src="edit.js"></script> 82 </body> 83 </html>