Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Security
Guides - Privacy & Security Tips
Linux - Some simple tips for Arch Linux maintenance
Message
<blockquote data-quote="Soulbound" data-source="post: 341850" data-attributes="member: 33155"><p>For those running Arch, you would know how important is not to always update straight away packages.</p><p></p><p>However, for those new to Arch Linux or any distributions based on Arch, this simple guide will teach you how to downgrade/rollback a package that you had previously installed as well as set a "ignore" list of packages for when you do an update on the system.</p><p></p><p>To show all packages in cache that you have downloaded (unless you have cleared its contents)</p><p></p><p>On a terminal:</p><p></p><p>Run: cd /var/cache/pacman/</p><p></p><p>List contents via command:</p><p>Run: l</p><p>[code]</p><p>pkg/ will be displayed.</p><p>[/code]</p><p>Run: cd pkg/</p><p>Run: l</p><p></p><p>This will show all versions of packages you have installed.</p><p></p><p>If you want to search for a specific package, run:</p><p>ls packagename*</p><p></p><p>(replace packagename with the actual package you are searching for).</p><p></p><p></p><p></p><p>To downgrade/rollback to a previous version of the same package:</p><p>On the same directory in a terminal /etc/var/cache/pacman/pkg/ :</p><p></p><p>ls packagename*</p><p></p><p>Output should show for example:</p><p>package1.pkg.tar.xz package2.pkg.tar.xz</p><p></p><p>Now you want to go back to package1 because package2 is unstable or has issues etc (always pay attention to broken dependencies when upgrading packages, make note of them just in case. Trust me it will save you a lot of work...</p><p></p><p>Run:</p><p>sudo pacman -U packagename1.pkg.tar.xz</p><p></p><p>Then type Yes to install.</p><p></p><p></p><p>Thats how you downgrade/rollback a package</p><p></p><p></p><p></p><p>Now to add a package to an "ignore" list, it is simple. You just need to add an entry in the pacman config file:</p><p></p><p>On a terminal run the following commands (note that this is considering you are using NANO as the text editor):</p><p></p><p>sudo nano /etc/pacman.conf</p><p></p><p>enter password</p><p></p><p>Under General Options or Options</p><p>Add the following:</p><p></p><p>[code]</p><p>IgnorePkg=packagename</p><p>[/code]</p><p>(the packagename above is the package you want to ignore it from update)</p><p></p><p></p><p>Then press CTRL X and then Y and press Enter (Saves and exit)</p><p></p><p>Note: if you want to ignore a group of packages for same main package, use IgnoreGroup instead of IgnorePkg. For the full list of groups, visit <a href="https://www.archlinux.org/groups/" target="_blank">Arch Groups page</a></p><p></p><p></p><p>When doing a update (sudo pacman -Syu), it will show in an output the packages in the Ignore section.</p><p></p><p></p><p>As an Arch user, I myself am subscribed to the <a href="https://lists.archlinux.org//listinfo/arch-announce/" target="_blank">arch mailing list</a>.</p><p></p><p>Hope this helps any Arch user who is having some trouble.</p></blockquote><p></p>
[QUOTE="Soulbound, post: 341850, member: 33155"] For those running Arch, you would know how important is not to always update straight away packages. However, for those new to Arch Linux or any distributions based on Arch, this simple guide will teach you how to downgrade/rollback a package that you had previously installed as well as set a "ignore" list of packages for when you do an update on the system. To show all packages in cache that you have downloaded (unless you have cleared its contents) On a terminal: Run: cd /var/cache/pacman/ List contents via command: Run: l [code] pkg/ will be displayed. [/code] Run: cd pkg/ Run: l This will show all versions of packages you have installed. If you want to search for a specific package, run: ls packagename* (replace packagename with the actual package you are searching for). To downgrade/rollback to a previous version of the same package: On the same directory in a terminal /etc/var/cache/pacman/pkg/ : ls packagename* Output should show for example: package1.pkg.tar.xz package2.pkg.tar.xz Now you want to go back to package1 because package2 is unstable or has issues etc (always pay attention to broken dependencies when upgrading packages, make note of them just in case. Trust me it will save you a lot of work... Run: sudo pacman -U packagename1.pkg.tar.xz Then type Yes to install. Thats how you downgrade/rollback a package Now to add a package to an "ignore" list, it is simple. You just need to add an entry in the pacman config file: On a terminal run the following commands (note that this is considering you are using NANO as the text editor): sudo nano /etc/pacman.conf enter password Under General Options or Options Add the following: [code] IgnorePkg=packagename [/code] (the packagename above is the package you want to ignore it from update) Then press CTRL X and then Y and press Enter (Saves and exit) Note: if you want to ignore a group of packages for same main package, use IgnoreGroup instead of IgnorePkg. For the full list of groups, visit [URL='https://www.archlinux.org/groups/']Arch Groups page[/URL] When doing a update (sudo pacman -Syu), it will show in an output the packages in the Ignore section. As an Arch user, I myself am subscribed to the [URL='https://lists.archlinux.org//listinfo/arch-announce/']arch mailing list[/URL]. Hope this helps any Arch user who is having some trouble. [/QUOTE]
Insert quotes…
Verification
Post reply
Top