![]() ![]() Once installed, the systemd unit that manages the main snap communication socket needs to be enabled: $ sudo systemctl enable -now snapd.socket Three RPMs form the complete snapd installation, and these are built as follows: $ rpmbuild -bb ~/rpmbuild/SPECS/snapd.specįinally, all three RPM packages can be installed: $ sudo dnf localinstall \ $ sudo dnf builddep ~/rpmbuild/SPECS/snapd.spec -y Then, while still in ~/rpmbuild/SOURCES, fetch the remaining release packages and install the build dependencies: $ spectool -g ~/rpmbuild/SOURCES/snapd.spec $ tar -xvJ -C ~/rpmbuild/SPECS -strip-components=3 \ To setup the RPM build environment, first prepare the RPM tree in your home directory, fetch the source tarballs and extract the RPM spec: $ rpmdev-setuptree The snapd code base includes an RPM SPEC file, which contains the recipe used to build the RPM packages. ![]() Next, refresh the package list and install a few dependencies: $ sudo dnf upgrade $ sudo subscription-manager repos -enable rhel-8-for-x86_64-appstream-rpms Building the RPM manuallyįirst, both the new developer-centric CodeReady Linux Builder and the AppStream additional user space application repositories need to be added, followed by the Extra Packages for Enterprise Linux repository: $ sudo subscription-manager repos -enable codeready-builder-for-rhel-8-x86_64-rpms However, if you are an advanced user and wish to see how snap is built, its RPMs can be built and manually installed relatively easily, as outlined below. ![]() See Installing snap on Red Hat Enterprise Linux (RHEL) for installation instructions. Snap is currently available for Red Hat Enterprise Linux (RHEL) 8 and RHEL 7.6 . Building a snap RPM for Red Hat Enterprise Linux (RHEL) 8 ![]()
0 Comments
Leave a Reply. |