How to Install and Uninstall libmagic1 Package on Debian 12 (Bookworm)

Last updated: November 26,2024

1. Install "libmagic1" package

Please follow the guidance below to install libmagic1 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install libmagic1

2. Uninstall "libmagic1" package

Here is a brief guide to show you how to uninstall libmagic1 on Debian 12 (Bookworm):

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

3. Information about the libmagic1 package on Debian 12 (Bookworm)

Package: libmagic1
Source: file
Version: 1:5.44-3
Installed-Size: 232
Maintainer: Christoph Biedl
Architecture: amd64
Depends: libbz2-1.0, libc6 (>= 2.33), liblzma5 (>= 5.1.1alpha+20120614), zlib1g (>= 1:1.1.4), libmagic-mgc (= 1:5.44-3)
Suggests: file
Description: Recognize the type of data in a file using "magic" numbers - library
Description-md5: 7c626dcc59dd225f2ce4a3522fed96e2
Multi-Arch: same
Homepage: https://www.darwinsys.com/file/
Tag: role::shared-lib
Section: libs
Priority: optional
Filename: pool/main/f/file/libmagic1_5.44-3_amd64.deb
Size: 103752
MD5sum: c32639ffdf6532d070fad8f2051d1efb
SHA256: a241c2adc7438a7e217f32544028489981768a349d3e48673392703255c7b88e