How to Install and Uninstall bats-file Package on Kali Linux

Last updated: November 26,2024

1. Install "bats-file" package

This tutorial shows how to install bats-file on Kali Linux

$ sudo apt update $ sudo apt install bats-file

2. Uninstall "bats-file" package

Learn how to uninstall bats-file on Kali Linux:

$ sudo apt remove bats-file $ sudo apt autoclean && sudo apt autoremove

3. Information about the bats-file package on Kali Linux

Package: bats-file
Version: 0.4.0-1
Installed-Size: 50
Maintainer: Debian Bats team
Architecture: all
Depends: bats-support
Enhances: bats
Size: 7688
SHA256: a13210d225380399b3e9315e7d60be1e8eb50431b88dfe2116e4d56609a9de2f
SHA1: 0d1df51407a98d3e4897d6b3c8642185ac0a59b2
MD5sum: 3c8eb8b11a2a9519c2cf588d0485afbd
Description: Helper library providing filesystem-related assertions for Bats
bats-file provides various assertions and helpers to simplify writing
Bats tests that deal with files and filesystems.
.
For example:
.
* assert_file_contains: Check if the file content matches a regex.
* assert_file_owner: Check if a specific user owns the file.
* assert_symlink_to: Check if the file is a symlink to the target.
* temp_make: Create a temp directory for the current test in BATS_TMPDIR.
Description-md5:
Multi-Arch: foreign
Homepage: https://github.com/bats-core/bats-file
Section: devel
Priority: optional
Filename: pool/main/b/bats-file/bats-file_0.4.0-1_all.deb