How To Install bash-argsparse on Fedora 36

In this tutorial we learn how to install bash-argsparse in Fedora 36. bash-argsparse is An high level argument parsing library for bash

Introduction

In this tutorial we learn how to install bash-argsparse on Fedora 36.

What is bash-argsparse

An high level argument parsing library for bash. The purpose is to replace the option-parsing and usage-describing functions commonly rewritten in all scripts. This library is implemented for bash version 4. Prior versions of bash will fail at interpreting that code.

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

Install bash-argsparse on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install bash-argsparse

Install bash-argsparse on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install bash-argsparse using yum by running the following command:

sudo yum -y install bash-argsparse

How To Uninstall bash-argsparse on Fedora 36

To uninstall only the bash-argsparse package we can use the following command:

sudo dnf remove bash-argsparse

bash-argsparse Package Contents on Fedora 36

/usr/bin/argsparse
/usr/bin/argsparse.sh
/usr/share/doc/bash-argsparse
/usr/share/doc/bash-argsparse/COPYING
/usr/share/doc/bash-argsparse/README.md
/usr/share/doc/bash-argsparse/html
/usr/share/doc/bash-argsparse/html/bc_s.png
/usr/share/doc/bash-argsparse/html/bdwn.png
/usr/share/doc/bash-argsparse/html/closed.png
/usr/share/doc/bash-argsparse/html/doc.png
/usr/share/doc/bash-argsparse/html/doxygen.css
/usr/share/doc/bash-argsparse/html/doxygen.svg
/usr/share/doc/bash-argsparse/html/dynsections.js
/usr/share/doc/bash-argsparse/html/folderclosed.png
/usr/share/doc/bash-argsparse/html/folderopen.png
/usr/share/doc/bash-argsparse/html/index.html
/usr/share/doc/bash-argsparse/html/jquery.js
/usr/share/doc/bash-argsparse/html/menu.js
/usr/share/doc/bash-argsparse/html/menudata.js
/usr/share/doc/bash-argsparse/html/nav_f.png
/usr/share/doc/bash-argsparse/html/nav_g.png
/usr/share/doc/bash-argsparse/html/nav_h.png
/usr/share/doc/bash-argsparse/html/open.png
/usr/share/doc/bash-argsparse/html/search
/usr/share/doc/bash-argsparse/html/search/close.svg
/usr/share/doc/bash-argsparse/html/search/mag_sel.svg
/usr/share/doc/bash-argsparse/html/search/nomatches.html
/usr/share/doc/bash-argsparse/html/search/search.css
/usr/share/doc/bash-argsparse/html/search/search.js
/usr/share/doc/bash-argsparse/html/search/search_l.png
/usr/share/doc/bash-argsparse/html/search/search_m.png
/usr/share/doc/bash-argsparse/html/search/search_r.png
/usr/share/doc/bash-argsparse/html/search/searchdata.js
/usr/share/doc/bash-argsparse/html/splitbar.png
/usr/share/doc/bash-argsparse/html/sync_off.png
/usr/share/doc/bash-argsparse/html/sync_on.png
/usr/share/doc/bash-argsparse/html/tab_a.png
/usr/share/doc/bash-argsparse/html/tab_b.png
/usr/share/doc/bash-argsparse/html/tab_h.png
/usr/share/doc/bash-argsparse/html/tab_s.png
/usr/share/doc/bash-argsparse/html/tabs.css
/usr/share/doc/bash-argsparse/tutorial
/usr/share/doc/bash-argsparse/tutorial/1-basics
/usr/share/doc/bash-argsparse/tutorial/2-values
/usr/share/doc/bash-argsparse/tutorial/3-cumulative-options
/usr/share/doc/bash-argsparse/tutorial/4-types
/usr/share/doc/bash-argsparse/tutorial/5-custom-types
/usr/share/doc/bash-argsparse/tutorial/6-properties
/usr/share/doc/bash-argsparse/tutorial/7-value-checking
/usr/share/doc/bash-argsparse/tutorial/8-setting-hook
/usr/share/doc/bash-argsparse/tutorial/9-misc

References

Summary

In this tutorial we learn how to install bash-argsparse on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).