How To Install js-uglify on Rocky Linux 8
Introduction
In this tutorial we learn how to install js-uglify on Rocky Linux 8.
What is js-uglify
JavaScript parser, mangler/compressor and beautifier toolkit. This package ships a JavaScript library suitable for use by any JavaScript runtime.
We can use yum or dnf to install js-uglify on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install js-uglify.
Install js-uglify on Rocky Linux 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install js-uglify using dnf by running the following command:
sudo dnf -y install js-uglify
Install js-uglify on Rocky Linux 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install js-uglify using yum by running the following command:
sudo yum -y install js-uglify
How To Uninstall js-uglify on Rocky Linux 8
To uninstall only the js-uglify package we can use the following command:
sudo dnf remove js-uglify
js-uglify Package Contents on Rocky Linux 8
/usr/share/doc/js-uglify
/usr/share/doc/js-uglify/README.md
/usr/share/javascript/uglify-js
/usr/share/javascript/uglify-js-2
/usr/share/javascript/uglify-js-2/ast.js
/usr/share/javascript/uglify-js-2/compress.js
/usr/share/javascript/uglify-js-2/mozilla-ast.js
/usr/share/javascript/uglify-js-2/output.js
/usr/share/javascript/uglify-js-2/parse.js
/usr/share/javascript/uglify-js-2/propmangle.js
/usr/share/javascript/uglify-js-2/scope.js
/usr/share/javascript/uglify-js-2/sourcemap.js
/usr/share/javascript/uglify-js-2/transform.js
/usr/share/javascript/uglify-js-2/utils.js
/usr/share/licenses/js-uglify
/usr/share/licenses/js-uglify/LICENSE
/usr/share/uglify-js
References
Summary
In this tutorial we learn how to install js-uglify on Rocky Linux 8 using yum and dnf.