How to Install and Uninstall libmagic1 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 18,2024

1. Install "libmagic1" package

Please follow the steps below to install libmagic1 on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install libmagic1

2. Uninstall "libmagic1" package

Please follow the steps below to uninstall libmagic1 on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove libmagic1 $ sudo apt autoclean && sudo apt autoremove

3. Information about the libmagic1 package on Ubuntu 21.04 (Hirsute Hippo)

Package: libmagic1
Architecture: amd64
Version: 1:5.39-3
Multi-Arch: same
Priority: standard
Section: libs
Source: file
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Christoph Biedl
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 232
Depends: libbz2-1.0, libc6 (>= 2.15), zlib1g (>= 1:1.1.4), libmagic-mgc (= 1:5.39-3)
Suggests: file
Filename: pool/main/f/file/libmagic1_5.39-3_amd64.deb
Size: 80588
MD5sum: 4aed775c2fc89a600f85d08e8d6a3e57
SHA1: a7a3846cde0e643cd420a1853a56bffbe0b02899
SHA256: 4f3092887855c627d3503e6d80de41dc4900eb3eb0a785c66327bf843b2c613f
SHA512: 392e0368874b77983e60121e9ebbb832bacc8827962e4b7a6268f515ad66c20d68027d99b58a2229b8c96fdc0c10fd8e0eb51b0a2e2af6e15b1e59de04f1ae38
Homepage: https://www.darwinsys.com/file/
Description-en: Recognize the type of data in a file using "magic" numbers - library
This library can be used to classify files according to magic number
tests. It implements the core functionality of the file command.
Description-md5: 7c626dcc59dd225f2ce4a3522fed96e2
Task: standard