How To Install lpf on Fedora 34

lpf is Local package factory - build non-redistributable rpms

Introduction

In this tutorial we learn how to install lpf on Fedora 34.

What is lpf

lpf (Local Package Factory) is designed to handle two separate problems - Packages built from sources which does not allow redistribution. - Packages requiring user to accept EULA-like terms. It works by downloading sources, possibly requiring a user to accept license terms and then building and installing rpm package(s) locally. Besides being interactive the operation is similar to akmod and dkms.

We can use yum or dnf to install lpf on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install lpf.

Install lpf on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install lpf using dnf by running the following command:

sudo dnf -y install lpf

Install lpf on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install lpf using yum by running the following command:

sudo yum -y install lpf

How To Uninstall lpf on Fedora 34

To uninstall only the lpf package we can use the following command:

sudo dnf remove lpf

lpf Package Contents on Fedora 34

/etc/sudoers.d/pkg-build
/usr/bin/lpf
/usr/bin/lpf-gui
/usr/lib/rpm/macros.d/macros.lpf
/usr/libexec/lpf-kill-pgroup
/usr/share/appdata
/usr/share/appdata/lpf.appdata.xml
/usr/share/applications/lpf-gui.desktop
/usr/share/applications/lpf-notify.desktop
/usr/share/applications/lpf.desktop
/usr/share/doc/lpf
/usr/share/doc/lpf/LICENSE
/usr/share/doc/lpf/README.md
/usr/share/icons/hicolor/128x128/apps/lpf.png
/usr/share/icons/hicolor/24x24/apps/lpf-gui.png
/usr/share/icons/hicolor/24x24/apps/lpf.png
/usr/share/icons/hicolor/32x32/apps/lpf-gui.png
/usr/share/icons/hicolor/32x32/apps/lpf.png
/usr/share/icons/hicolor/48x48/apps/lpf-gui.png
/usr/share/icons/hicolor/48x48/apps/lpf.png
/usr/share/icons/hicolor/64x64/apps/lpf.png
/usr/share/lpf
/usr/share/lpf/CONFIG
/usr/share/lpf/icons
/usr/share/lpf/icons/error.png
/usr/share/lpf/icons/lpf-128.png
/usr/share/lpf/icons/lpf-24.png
/usr/share/lpf/icons/lpf-32.png
/usr/share/lpf/icons/lpf-48.png
/usr/share/lpf/icons/lpf-64.png
/usr/share/lpf/icons/lpf-gui-24.png
/usr/share/lpf/icons/lpf-gui-32.png
/usr/share/lpf/icons/lpf-gui-48.png
/usr/share/lpf/icons/ok.png
/usr/share/lpf/icons/unbuilt.png
/usr/share/lpf/lpf-gui.1
/usr/share/lpf/lpf-notify.desktop
/usr/share/lpf/lpf.1
/usr/share/lpf/packages
/usr/share/lpf/scripts
/usr/share/lpf/scripts/build-error.ui
/usr/share/lpf/scripts/build_error
/usr/share/lpf/scripts/build_error.py
/usr/share/lpf/scripts/lpf
/usr/share/lpf/scripts/lpf-add-group
/usr/share/lpf/scripts/lpf-approve
/usr/share/lpf/scripts/lpf-build
/usr/share/lpf/scripts/lpf-defs.bash
/usr/share/lpf/scripts/lpf-gui
/usr/share/lpf/scripts/lpf-gui.ui
/usr/share/lpf/scripts/lpf-install
/usr/share/lpf/scripts/lpf-kill-pgroup
/usr/share/lpf/scripts/lpf-notify
/usr/share/lpf/scripts/lpf-pkg-postun
/usr/share/lpf/scripts/lpf-pkgbuild
/usr/share/lpf/scripts/lpf-scan
/usr/share/lpf/scripts/lpf-setup-pkg
/usr/share/lpf/scripts/lpf-sudo-builddep
/usr/share/lpf/scripts/lpf-sudo-defs.bash
/usr/share/lpf/scripts/lpf-sudo-install
/usr/share/lpf/scripts/lpf-update
/usr/share/lpf/scripts/lpf_gui_base.py
/usr/share/lpf/scripts/mockbuild
/usr/share/lpf/scripts/mockbuild-helper
/usr/share/lpf/scripts/notify
/usr/share/lpf/scripts/notify.py
/usr/share/lpf/scripts/notify.ui
/usr/share/lpf/scripts/sudo_askpass
/usr/share/lpf/scripts/update
/usr/share/lpf/scripts/update.py
/usr/share/lpf/scripts/update.ui
/usr/share/lpf/scripts/version.py
/usr/share/lpf/version
/usr/share/man/man1/lpf-gui.1.gz
/usr/share/man/man1/lpf.1.gz
/var/lib/lpf
/var/lib/lpf/approvals
/var/lib/lpf/log
/var/lib/lpf/notify
/var/lib/lpf/packages
/var/lib/lpf/rpms

References

Summary

In this tutorial we learn how to install lpf on Fedora 34 using yum and dnf.