ChrisTitusTech / linutil

Chris Titus Tech's Linux Toolbox - Linutil is a distro-agnostic toolbox designed to simplify everyday Linux tasks.
https://christitus.com
MIT License
1.75k stars 158 forks source link

fix partial upgrades and reinstallation of packages in Arch Linux #159

Closed AdamJedl closed 3 weeks ago

AdamJedl commented 1 month ago

Pull Request

Title

fix partial upgrades and reinstallation of packages in Arch Linux

Type of Change

Description

Arch Linux doesn't support partial upgrades. Without "--needed" flag Pacman will unnecessarily reinstall packages.

Impact

Fixes potential problems on Arch Linux and unnecessary reinstall of packages.

Issue related to PR

Checklist

AdamJedl commented 1 month ago

https://github.com/ChrisTitusTech/linutil/blob/284485e15c34d2f1772a71f3867a8245264d24c0/src/commands/system-update.sh#L81-L82 This is not considered a partial upgrade. https://wiki.archlinux.org/title/Pacman/Package_signing#Upgrade_system_regularly