How to Install and Uninstall ruby-magic Package on Ubuntu 21.10 (Impish Indri)

Last updated: April 29,2024

1. Install "ruby-magic" package

Please follow the instructions below to install ruby-magic on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install ruby-magic

2. Uninstall "ruby-magic" package

Here is a brief guide to show you how to uninstall ruby-magic on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove ruby-magic $ sudo apt autoclean && sudo apt autoremove

3. Information about the ruby-magic package on Ubuntu 21.10 (Impish Indri)

Package: ruby-magic
Architecture: all
Version: 0.2.9-2
Priority: optional
Section: universe/ruby
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Extras Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 32
Depends: libmagic1, ruby-ffi (>= 0.6.3)
Filename: pool/universe/r/ruby-magic/ruby-magic_0.2.9-2_all.deb
Size: 6756
MD5sum: 249ba0669d82ba9c2befad27cc8e34c3
SHA1: 78dbb50167986a3c46dee563a82906bda0f609be
SHA256: 81800a1fcb0fc481727ea932351b3c1d6ef8edd590f8589f4f337cc7df5e92a6
SHA512: c5533f7962ed08aeaafab5abcfb7b239b9822025c7149f2cbc775b4cfcf8e43ebe7efafcd52b2dc4102996985df81bd085c0e285f53d56249923e3bea0d83f95
Homepage: https://github.com/qoobaa/magic
Description-en: Ruby FFI bindings to libmagic
This package provides a Ruby FFI wrapper to the "magic" library that
determines content type and encoding of files and strings. The library does
three types of tests: file system tests, magic number tests, and language
tests. The first test that succeeds causes the file type to be returned.
Description-md5: 79a0ef4e6808a8f13a2ab6e1458bcffe
Ruby-Versions: all