Hi, how to properly update software built from source on Arch Linux?
- User
Hi, how to properly update software built from source on Arch Linux?
- Assistant
Hi, how to properly update software built from source on Arch Linux?
When updating software built from source on Arch Linux, you have to manually manage the process, as the system's package manager (pacman) doesn't automatically handle updates for software not installed from the Arch repositories or the Arch User Repository (AUR).
Below are the general steps you would typically follow to update software you've built from source:
Check for Updates:
git if the source is maintained in a Git repository to fetch the latest commits. Navigate to the directory containing the source and run:
git pull
Backup Configuration:
Download the Latest Source:
Prepare for Building:
Compile the New Version:
./configure # With the appropriate flags
make
Install the New Version:
sudo if you are installing it system-wide:
sudo make install
Post-installation Steps:
Test the New Version:
Remember to read the software's installation documentation each time, as new versions may introduce changes to the build process or dependencies.
Note: If the software you built from source is also available in the AUR, consider installing it from there using an AUR helper like yay or paru. This way, you get the benefit of easier updates since the AUR helper will check for updates and rebuild the package as needed. Additionally, using a PKGBUILD from the AUR will ensure that the software is correctly registered with pacman, making it easier to manage and remove later if desired.
Not yet included in a published release.