How to Install and Uninstall ruby-magic Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: September 20,2024

1. Install "ruby-magic" package

Here is a brief guide to show you how to install ruby-magic on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install ruby-magic

2. Uninstall "ruby-magic" package

This tutorial shows how to uninstall ruby-magic on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the ruby-magic package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: ruby-magic
Priority: optional
Section: universe/ruby
Installed-Size: 31
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Extras Maintainers
Architecture: all
Version: 0.2.9-1
Depends: ruby | ruby-interpreter, ruby-ffi (>= 0.6.3), libmagic1
Filename: pool/universe/r/ruby-magic/ruby-magic_0.2.9-1_all.deb
Size: 6454
MD5sum: df66c4e2d094d2676cf58572804584b6
SHA1: 48336aa406c4f6053fc89dc574f2530e48ff66ce
SHA256: f6dc2742dd943eff37ef8d439042dcc8f52adb1f93afff217a242e8ab5005f16
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
Homepage: https://github.com/qoobaa/magic
Ruby-Versions: all
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu