How To Install bsf on Fedora 34
Introduction
In this tutorial we learn how to install bsf
on Fedora 34.
What is bsf
Bean Scripting Framework (BSF) is a set of Java classes which provides scripting language support within Java applications, and access to Java objects and methods from scripting languages. BSF allows one to write JSPs in languages other than Java while providing access to the Java class library. In addition, BSF permits any Java application to be implemented in part (or dynamically extended) by a language that is embedded within it. This is achieved by providing an API that permits calling scripting language engines from within Java, as well as an object registry that exposes Java objects to these scripting language engines. BSF supports several scripting languages currently * Javascript (using Rhino ECMAScript, from the Mozilla project) * Python (using either Jython or JPython) * Tcl (using Jacl) * NetRexx (an extension of the IBM REXX scripting language in Java) * XSLT Stylesheets (as a component of Apache XML project’s Xalan and Xerces) In addition, the following languages are supported with their own BSF engines * Java (using BeanShell, from the BeanShell project) * JRuby * JudoScript
We can use yum
or dnf
to install bsf
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install bsf.
Install bsf 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 bsf
using dnf
by running the following command:
sudo dnf -y install bsf
Install bsf 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 bsf
using yum
by running the following command:
sudo yum -y install bsf
How To Uninstall bsf on Fedora 34
To uninstall only the bsf
package we can use the following command:
sudo dnf remove bsf
bsf Package Contents on Fedora 34
/usr/share/doc/bsf
/usr/share/doc/bsf/AUTHORS.txt
/usr/share/doc/bsf/CHANGES.txt
/usr/share/doc/bsf/README.txt
/usr/share/doc/bsf/RELEASE-NOTE.txt
/usr/share/doc/bsf/TODO.txt
/usr/share/java/bsf.jar
/usr/share/licenses/bsf
/usr/share/licenses/bsf/LICENSE.txt
/usr/share/licenses/bsf/NOTICE.txt
/usr/share/maven-metadata/bsf.xml
/usr/share/maven-poms/bsf.pom
References
Summary
In this tutorial we learn how to install bsf
on Fedora 34 using yum and dnf.