hope not tied to SystemD
hope not tied to SystemD
Posted Aug 18, 2025 8:02 UTC (Mon) by gdiscry (subscriber, #91125)In reply to: hope not tied to SystemD by NYKevin
Parent article: Finding a successor to the FHS
The spec says that arch-id in $libdir is an architecture tuple:
The architecture identifier to use is defined on Multiarch Architecture Specifiers (Tuples) list.
The issue is that some distributions do not use that path:
Legacy locations of
$libdirare/usr/lib/,/usr/lib64/.
Therefore, systemd-path is currently one way to query the path of $libdir at runtime across distributions that use systemd.
You could also use the first existing directory:
/usr/lib/arch-id//usr/lib64/(if your architecture is x86_64)/usr/lib/
