How To Install libjimfs-java on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libjimfs-java
on Ubuntu 20.04.
What is libjimfs-java
libjimfs-java is:
Jimfs is an in-memory file system for Java 7 and above, implementing the java.nio.file abstract file system APIs. Jimfs supports almost all the APIs under java.nio.file. It supports:
- Creating, deleting, moving and copying files and directories.
- Reading and writing files with FileChannel or SeekableByteChannel, InputStream, OutputStream, etc. Symbolic links.
- Hard links to regular files.
- SecureDirectoryStream, for operations relative to an open directory.
- Glob and regex path filtering with PathMatcher.
- Watching for changes to a directory with a WatchService.
- File attributes. Built-in attribute views that can be supported include “basic”, “owner”, “posix”, “unix”, “dos”, “acl” and “user”. Do note, however, that not all attribute views provide useful attributes.
For example, while setting and reading POSIX file permissions is possible with the “posix” view, those permissions will not actually affect the behavior of the file system.
Jimfs also supports creating file systems that, for example, use Windows-style paths and (to an extent) behavior. In general, however, file system behavior is modeled after UNIX and may not exactly match any particular real file system or platform.
NOTE: SystemJimfsFileSystemProvider is not fully included in this package, because it requires a library that is not yet in Debian.
There are three methods to install libjimfs-java
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libjimfs-java Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libjimfs-java
using apt-get
by running the following command:
sudo apt-get -y install libjimfs-java
Install libjimfs-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libjimfs-java
using apt
by running the following command:
sudo apt -y install libjimfs-java
Install libjimfs-java Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libjimfs-java
using aptitude
by running the following command:
sudo aptitude -y install libjimfs-java
How To Uninstall libjimfs-java on Ubuntu 20.04
To uninstall only the libjimfs-java
package we can use the following command:
sudo apt-get remove libjimfs-java
Uninstall libjimfs-java And Its Dependencies
To uninstall libjimfs-java
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libjimfs-java
Remove libjimfs-java Configurations and Data
To remove libjimfs-java
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libjimfs-java
Remove libjimfs-java configuration, data, and all of its dependencies
We can use the following command to remove libjimfs-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libjimfs-java
References
Summary
In this tutorial we learn how to install libjimfs-java
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.