mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-05 19:06:37 +02:00
1 line
9.7 KiB
JavaScript
1 line
9.7 KiB
JavaScript
"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[713],{635:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>t,toc:()=>l});const t=JSON.parse('{"id":"post-installation/update-snigdha-os","title":"Update Snigdha OS","description":"\ud83d\udd04 How to Update Snigdha OS","source":"@site/docs/post-installation/update-snigdha-os.md","sourceDirName":"post-installation","slug":"/post-installation/update-snigdha-os","permalink":"/documentation/post-installation/update-snigdha-os","draft":false,"unlisted":false,"editUrl":"https://github.com/Snigdha-OS/documentation/tree/master/docs/post-installation/update-snigdha-os.md","tags":[],"version":"current","lastUpdatedAt":1735540368000,"sidebarPosition":2,"frontMatter":{"sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"Language","permalink":"/documentation/post-installation/snigdha-os-language-pack"},"next":{"title":"Customize Snigdha OS","permalink":"/documentation/post-installation/customize-snigdha-os"}}');var a=n(6070),i=n(6599);const o={sidebar_position:2},r="Update Snigdha OS",d={},l=[{value:"\ud83d\udd04 <strong>How to Update Snigdha OS</strong>",id:"-how-to-update-snigdha-os",level:3},{value:"\ud83d\udd27 <strong>Step 1: Open the Terminal</strong>",id:"-step-1-open-the-terminal",level:3},{value:"\ud83d\udd04 <strong>Step 2: Update the System</strong>",id:"-step-2-update-the-system",level:3},{value:"<strong>Basic Update Command</strong>",id:"basic-update-command",level:4},{value:"<strong>Snigdha OS Assistant (Optional)</strong>",id:"snigdha-os-assistant-optional",level:4},{value:"<strong>With AUR Packages (Using an AUR Helper)</strong>",id:"with-aur-packages-using-an-aur-helper",level:4},{value:"\ud83d\udee0\ufe0f <strong>Step 3: Rebuild Outdated Configurations</strong>",id:"\ufe0f-step-3-rebuild-outdated-configurations",level:3},{value:"\ud83e\uddf9 <strong>Step 4: Clean Up Unused Packages</strong>",id:"-step-4-clean-up-unused-packages",level:3},{value:"\ud83d\ude80 <strong>Step 5: Reboot Your System</strong>",id:"-step-5-reboot-your-system",level:3},{value:"\ud83c\udf1f <strong>Tips for Safe Updates</strong>",id:"-tips-for-safe-updates",level:3},{value:"\ud83d\udcbb <strong>Example Commands</strong>",id:"-example-commands",level:3},{value:"\ud83c\udf89 <strong>Conclusion</strong>",id:"-conclusion",level:3}];function c(e){const s={a:"a",br:"br",code:"code",h1:"h1",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.header,{children:(0,a.jsx)(s.h1,{id:"update-snigdha-os",children:"Update Snigdha OS"})}),"\n",(0,a.jsxs)(s.h3,{id:"-how-to-update-snigdha-os",children:["\ud83d\udd04 ",(0,a.jsx)(s.strong,{children:"How to Update Snigdha OS"})]}),"\n",(0,a.jsxs)(s.p,{children:["Snigdha OS, based on Arch Linux, uses a ",(0,a.jsx)(s.strong,{children:"rolling release model"}),", meaning you always have access to the latest updates. Keeping your system up-to-date ensures stability, security, and access to the latest features."]}),"\n",(0,a.jsx)(s.p,{children:"Follow these steps to safely and effectively update your Snigdha OS system:"}),"\n",(0,a.jsxs)(s.h3,{id:"-step-1-open-the-terminal",children:["\ud83d\udd27 ",(0,a.jsx)(s.strong,{children:"Step 1: Open the Terminal"})]}),"\n",(0,a.jsxs)(s.p,{children:["Press ",(0,a.jsx)(s.code,{children:"Ctrl + Alt + T"})," to open the terminal or use the ",(0,a.jsx)(s.strong,{children:"Konsole"})," or any terminal emulator installed on your system."]}),"\n",(0,a.jsxs)(s.h3,{id:"-step-2-update-the-system",children:["\ud83d\udd04 ",(0,a.jsx)(s.strong,{children:"Step 2: Update the System"})]}),"\n",(0,a.jsx)(s.p,{children:"Run the following commands to update your Snigdha OS system:"}),"\n",(0,a.jsx)(s.h4,{id:"basic-update-command",children:(0,a.jsx)(s.strong,{children:"Basic Update Command"})}),"\n",(0,a.jsxs)(s.p,{children:["Use ",(0,a.jsx)(s.strong,{children:"Pacman"})," (the default package manager) to synchronize and upgrade packages:"]}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"sudo pacman -Syu\n"})}),"\n",(0,a.jsx)(s.h4,{id:"snigdha-os-assistant-optional",children:(0,a.jsx)(s.strong,{children:"Snigdha OS Assistant (Optional)"})}),"\n",(0,a.jsxs)(s.p,{children:["Snigdha OS provides a GUI tool called ",(0,a.jsx)(s.strong,{children:"Snigdha OS Assistant"})," for system management, including updates."]}),"\n",(0,a.jsxs)(s.ul,{children:["\n",(0,a.jsxs)(s.li,{children:["Open ",(0,a.jsx)(s.strong,{children:"Snigdha OS Assistant"})," from the application menu."]}),"\n",(0,a.jsxs)(s.li,{children:["Click on ",(0,a.jsx)(s.strong,{children:"Update System"})," and follow the prompts."]}),"\n"]}),"\n",(0,a.jsx)(s.h4,{id:"with-aur-packages-using-an-aur-helper",children:(0,a.jsx)(s.strong,{children:"With AUR Packages (Using an AUR Helper)"})}),"\n",(0,a.jsxs)(s.p,{children:["If you use AUR packages, update them alongside system packages with a tool like ",(0,a.jsx)(s.code,{children:"yay"})," or ",(0,a.jsx)(s.code,{children:"paru"}),":"]}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"yay -Syu\n"})}),"\n",(0,a.jsxs)(s.h3,{id:"\ufe0f-step-3-rebuild-outdated-configurations",children:["\ud83d\udee0\ufe0f ",(0,a.jsx)(s.strong,{children:"Step 3: Rebuild Outdated Configurations"})]}),"\n",(0,a.jsx)(s.p,{children:"After major updates, especially those involving the kernel or critical system components, rebuild configurations to avoid issues. Snigdha OS makes this easy with:"}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"sudo pacman -S linux-headers\n"})}),"\n",(0,a.jsxs)(s.p,{children:["If you use the ",(0,a.jsx)(s.strong,{children:"ZRAM"})," feature or ",(0,a.jsx)(s.strong,{children:"custom kernels"}),", ensure they're updated and aligned with the current system kernel."]}),"\n",(0,a.jsxs)(s.h3,{id:"-step-4-clean-up-unused-packages",children:["\ud83e\uddf9 ",(0,a.jsx)(s.strong,{children:"Step 4: Clean Up Unused Packages"})]}),"\n",(0,a.jsx)(s.p,{children:"Remove unused or orphaned packages to free up space:"}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"sudo pacman -Rns $(pacman -Qdtq)\n"})}),"\n",(0,a.jsxs)(s.p,{children:["Clear the package cache to save disk space (Snigdha OS already does this automatically with ",(0,a.jsx)(s.strong,{children:"paccache"}),"):"]}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"sudo paccache -r\n"})}),"\n",(0,a.jsxs)(s.h3,{id:"-step-5-reboot-your-system",children:["\ud83d\ude80 ",(0,a.jsx)(s.strong,{children:"Step 5: Reboot Your System"})]}),"\n",(0,a.jsx)(s.p,{children:"If a kernel or other core system components were updated, reboot your system to apply the changes:"}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"reboot\n"})}),"\n",(0,a.jsxs)(s.h3,{id:"-tips-for-safe-updates",children:["\ud83c\udf1f ",(0,a.jsx)(s.strong,{children:"Tips for Safe Updates"})]}),"\n",(0,a.jsxs)(s.ol,{children:["\n",(0,a.jsxs)(s.li,{children:["\n",(0,a.jsxs)(s.p,{children:[(0,a.jsx)(s.strong,{children:"Use Snigdha OS's Snapshot Feature"}),":"]}),"\n",(0,a.jsxs)(s.ul,{children:["\n",(0,a.jsxs)(s.li,{children:["Snigdha OS uses ",(0,a.jsx)(s.strong,{children:"Btrfs"})," snapshots via ",(0,a.jsx)(s.strong,{children:"Timeshift"}),". If something goes wrong during an update, you can roll back to a previous working state."]}),"\n",(0,a.jsxs)(s.li,{children:["Before updating, create a manual snapshot:","\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"sudo timeshift --create\n"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,a.jsxs)(s.li,{children:["\n",(0,a.jsxs)(s.p,{children:[(0,a.jsx)(s.strong,{children:"Check for Arch News"}),":",(0,a.jsx)(s.br,{}),"\n","Before major updates, check the ",(0,a.jsx)(s.strong,{children:"Arch Linux News"})," page for important announcements:"]}),"\n",(0,a.jsxs)(s.ul,{children:["\n",(0,a.jsx)(s.li,{children:(0,a.jsx)(s.a,{href:"https://archlinux.org/news/",children:"Arch Linux News"})}),"\n"]}),"\n"]}),"\n",(0,a.jsxs)(s.li,{children:["\n",(0,a.jsxs)(s.p,{children:[(0,a.jsx)(s.strong,{children:"Run Updates Regularly"}),":",(0,a.jsx)(s.br,{}),"\n","Snigdha OS is a rolling release, so it's important to update frequently to avoid large, time-consuming updates and potential conflicts."]}),"\n"]}),"\n"]}),"\n",(0,a.jsxs)(s.h3,{id:"-example-commands",children:["\ud83d\udcbb ",(0,a.jsx)(s.strong,{children:"Example Commands"})]}),"\n",(0,a.jsx)(s.p,{children:"Here\u2019s a single command for a complete update, including AUR packages and cleaning up:"}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"sudo pacman -Syu && yay -Syu && sudo pacman -Rns $(pacman -Qdtq)\n"})}),"\n",(0,a.jsxs)(s.h3,{id:"-conclusion",children:["\ud83c\udf89 ",(0,a.jsx)(s.strong,{children:"Conclusion"})]}),"\n",(0,a.jsxs)(s.p,{children:["Keeping Snigdha OS updated is straightforward and ensures you always have the latest features and security patches. With tools like ",(0,a.jsx)(s.strong,{children:"Snigdha OS Assistant"}),", ",(0,a.jsx)(s.strong,{children:"Pacman"}),", and ",(0,a.jsx)(s.strong,{children:"Timeshift"}),", managing updates is efficient and safe. \ud83d\ude80"]})]})}function h(e={}){const{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},6599:(e,s,n)=>{n.d(s,{R:()=>o,x:()=>r});var t=n(758);const a={},i=t.createContext(a);function o(e){const s=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function r(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),t.createElement(i.Provider,{value:s},e.children)}}}]); |