How to install popt on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
C library for parsing command line parameters
Availability
| Distro | aarch64 | noarch | x86_64 | Version |
|---|---|---|---|---|
| RHEL 10 | — | — | — | |
| RHEL 9 | — | — | — | |
| RHEL 8 | — | — | — | |
| RHEL 7 | — | — | ✓ | 1.16 |
| RHEL 6 | — | — | — |
Description
Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments. Popt allows command line arguments to be aliased via configuration files and includes utility functions for parsing arbitrary strings into argv[] arrays using shell-like rules.
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
popt on CentOS 7 / RHEL 7
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm sudo yum -y install popt
Package downloads require an active GetPageSpeed subscription — one repository for popt and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install popt on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the popt package with your system package manager.
Which Enterprise Linux versions is popt available for?
popt is available for RHEL 7.