In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to downgrade the software package in Arch Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Downgrade a package in Arch Linux
In Arch Linux, there is a utility called "downgrade" that helps you downgrade the installed package to any available older version. This utility will check your local cache and remote server (Arch Linux repository) to find the old version of the required software package. You can select any old stable package from this list and install it.
This package is not available in the official repository, you need to add an unofficial archlinuxfr repository.
To do this, edit the / etc/pacman.conf file:
$sudo nano / etc/pacman.conf
Add the following line:
[archlinuxfr] SigLevel = NeverServer = http://repo.archlinux.fr/$arch
Save and close the file.
Use the following command to update the warehouse:
$sudo pacman-Sy
Then install the "Downgrade" utility in the terminal using the following command:
$sudo pacman-S downgrade
Sample output:
Resolving dependencies... Looking for conflicting packages... Packages (1) downgrade-5.2.3-1 Total Download Size: 0.01MiB Total Installed Size: 0.10MiB:: Proceed with installation? [Y/n]
The typical usage of the "downgrade" command is:
$sudo downgrade [PACKAGE,...] [--[PACMAN OPTIONS]]
Let's assume that you want to downgrade the opera web browser to any older version that is available.
To do this, run:
$sudo downgrade opera
This command lists all available opera packages (new and old versions) from the local cache and the remote mirror.
Sample output:
Available packages: 1) opera-37.0.2178.43-1-x86_64.pkg.tar.xz (local) 2) opera-37.0.2178.43-1-x86_64.pkg.tar.xz (remote) 3) opera-37.0.2178.32-1-x86_64.pkg.tar.xz (remote) 4) opera-36.0.2130.65- 2-x86_64.pkg.tar.xz (remote) 5) opera-36.0.2130.65- 1-x86_64.pkg.tar.xz (remote) 6) opera-36.0.2130.46-2-x86_64.pkg.tar.xz (remote) 7) opera-36.0.2130.46-1-x86_64.pkg.tar.xz (remote) 8) opera-36.0.2130.32-2-x86_64.pkg.tar.xz (remote) 9) opera-36.0.2130.32-1-x86_64.pkg.tar.xz (remote) 10) Opera-35.0.2066.92-1-x86_64.pkg.tar.xz (remote) 11) opera-35.0.2066.82-1-x86_64.pkg.tar.xz (remote) 12) opera-35.0.2066.68-1-x86_64.pkg.tar.xz (remote) 13) opera-35.0.2066.37-2-x86_64.pkg.tar.xz (remote) 14) opera-34.0.2036.50-1-x86_64. Pkg.tar.xz (remote) 15) opera-34.0.2036.47-1-x86_64.pkg.tar.xz (remote) 16) opera-34.0.2036.25-1-x86_64.pkg.tar.xz (remote) 17) opera-33.0.1990.115-2-x86_64.pkg.tar.xz (remote) 18) opera-33.0.1990.115-1-x86_64.pkg.tar.xz (remote) 19) opera-33.0. 1990.58-1-x86_64.pkg.tar.xz (remote) 20) opera-32.0.1948.69-1-x86_64.pkg.tar.xz (remote) 21) opera-32.0.1948.25-1-x86_64.pkg.tar.xz (remote) 22) opera-31.0.1889.174-1-x86_64.pkg.tar.xz (remote) 23) opera-31.0.1889.99-1-x86_64.pkg.tar.xz ( Remote) 24) opera-30.0.1835.125-1-x86_64.pkg.tar.xz (remote) 25) opera-30.0.1835.88-1-x86_64.pkg.tar.xz (remote) 26) opera-30.0.1835.59-1-x86_64.pkg.tar.xz (remote) 27) opera-30.0.1835.52-1-x86_64.pkg.tar.xz (remote) 28) opera-29.0.1795.60-1- X86_64.pkg.tar.xz (remote) 29) opera-29.0.1795.47-1-x86_64.pkg.tar.xz (remote) 30) opera-28.0.1750.51-1-x86_64.pkg.tar.xz (remote) 31) opera-28.0.1750.48-1-x86_64.pkg.tar.xz (remote) 32) opera-28.0.1750.40-1-x86_64.pkg.tar.xz (remote) 33) opera- 27.0.1689.76-1-x86_64.pkg.tar.xz (remote) 34) opera-27.0.1689.69-1-x86_64.pkg.tar.xz (remote) 35) opera-27.0.1689.66-1-x86_64.pkg.tar.xz (remote) 36) opera-27.0.1689.54-2-x86_64.pkg.tar.xz (remote) 37) opera-27.0.1689.54-1-x86_64.pkg. Tar.xz (remote) 38) opera-26.0.1656.60-1-x86_64.pkg.tar.xz (remote) 39) opera-26.0.1656.32-1-x86_64.pkg.tar.xz (remote) 40) opera-12.16.1860-2-x86_64.pkg.tar.xz (remote) 41) opera-12.16.1860-1-x86_64.pkg.tar.xz (remote) select a package by number:
Just enter the package number of your choice and press enter to install it.
That's all. The currently installed package will be downgraded to the old version.
Also read: how to downgrade all packages to a specific date in Arch Linux
So how do you avoid corrupted packages and make Arch Linux more stable?
Check the Arch Linux news and forums before updating Arch Linux to see if there are any reported issues. I've been using Arch Linux as my primary operating system for the past few weeks, and here are some simple tips I've found during this time to avoid installing unstable packages in Arch Linux.
Hongmeng official Strategic Cooperation to build HarmonyOS Technology Community
Avoid partial upgrades. This means never running pacman-Sy. This command will partially upgrade your system when you install the package. Instead, use pacman-Syu to update the system first, and then use package-S to install the package.
Avoid using the pacman-Syu-force command. The-force flag ignores package and file conflicts and may end with a broken package or a corrupted system.
Do not skip the dependency check. This means that do not use pacman-Rdd. This command avoids dependency checking when deleting a package. If you run this command, the key dependencies required by another important package can also be removed. Eventually, it will damage your Arch Linux.
It is always a good habit to back up important data and configuration files regularly to avoid data loss.
Be careful when installing unofficial packages such as third-party packages and AUR. Do not install packages that are undergoing significant development.
The above is all the contents of the article "how to downgrade the package in Arch Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.