Introduction
In this tutorial we learn how to install argbash
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install argbash.
Install argbash on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the argbash
package we can use the following command:
sudo dnf remove argbash
argbash Package Contents on CentOS 8
/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 CentOS 8 using yum and dnf.