03-15-2025, 02:38 AM
The solution works, yet relies on "+aac" appearing in the package name.
A more flexible solution could be to keep any newer version which a user might have installed by hand. After playing around with dpkg a bit, I found the following method to compare the installed version against a requested version ("4.2.0-2moode1" in this case):
Best regards,
Jens
A more flexible solution could be to keep any newer version which a user might have installed by hand. After playing around with dpkg a bit, I found the following method to compare the installed version against a requested version ("4.2.0-2moode1" in this case):
Code:
if dpkg --compare-versions $(dpkg-query -W -f='${Version}' bluez-alsa-utils) ge "4.2.0-2moode1"; then echo "Newer or equal version"; else echo "Older version"; fi
Best regards,
Jens