RPM and Debs for Swift: Call for the Community

Moving the RPM install path discussion here from Update the README with Linux package / installer info (RPM/DEB) by shahmishal · Pull Request #37 · apple/swift-installer-scripts · GitHub

We need to decide between /usr/, /opt, and /usr/libexec/.

Install Location
/usr Packages included in swift package will conflict with other packages (clang, llvm, lld, lldb, and more)
/opt Use this location until we resolve the conflicts in /usr dir. However, for Fedora we will need to select different location
/usr/libexec Install the swift package here and symlink specific binaries into /usr/bin

In my opinion we don't need to have the same path for all distribution.

I propose Ubuntu 20.04, Ubuntu 18.04, CentOS 7, 8, and Amazon Linux 2 should install the package in /opt and Fedora in /usr/libexec until we resolve the conflicts.

3 Likes