How To Install argbash on Fedora 34

argbash is Bash argument parsing code generator

Introduction

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

What is argbash

Argbash helps your shell scripts to accept arguments. You declare what arguments you want your script to accept and Argbash generates the shell code that parses them from the command-line and exposes passed values as shell variables. Help message is also generated, and helpful error messages are dispatched if the script is called with arguments that conflict with the interface.

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

Install argbash 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 argbash using dnf by running the following command:

sudo dnf -y install argbash

Install argbash 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 argbash using yum by running the following command:

sudo yum -y install argbash

How To Uninstall argbash on Fedora 34

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

sudo dnf remove argbash

argbash Package Contents on Fedora 34

/usr/bin/argbash
/usr/bin/argbash-1to2
/usr/bin/argbash-init
/usr/share/argbash
/usr/share/argbash/argbash-lib.m4
/usr/share/argbash/argument_value_types.m4
/usr/share/argbash/collectors.m4
/usr/share/argbash/constants.m4
/usr/share/argbash/default_settings.m4
/usr/share/argbash/docopt.m4
/usr/share/argbash/env_vars.m4
/usr/share/argbash/function_generators.m4
/usr/share/argbash/list.m4
/usr/share/argbash/output-bash-script.m4
/usr/share/argbash/output-completion.m4
/usr/share/argbash/output-docopt.m4
/usr/share/argbash/output-manpage-defs.m4
/usr/share/argbash/output-manpage.m4
/usr/share/argbash/output-posix-script.m4
/usr/share/argbash/output-strip-all.m4
/usr/share/argbash/output-strip-none.m4
/usr/share/argbash/output-strip-user-content.m4
/usr/share/argbash/progs.m4
/usr/share/argbash/stuff.m4
/usr/share/argbash/utilities.m4
/usr/share/argbash/value_validators.m4
/usr/share/argbash/version
/usr/share/bash-completion/completions/argbash
/usr/share/doc/argbash
/usr/share/doc/argbash/ChangeLog
/usr/share/doc/argbash/README.md
/usr/share/licenses/argbash
/usr/share/licenses/argbash/LICENSE
/usr/share/man/man1/argbash.1.gz

References

Summary

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