How To Install disktype on Debian 10

Learn how to install disktype on Debian 10 with this tutorial. disktype is detection of content format of a disk or disk image

Introduction

In this tutorial we learn how to install disktype on Debian 10.

What is disktype

disktype is:

The purpose of disktype is to detect the content format of a disk or disk image. It knows about common file systems, partition tables and boot codes. This software can be used for forensics analysis.

As of version 9, disktype knows about the following formats:

File systems: FAT12/FAT16/FAT32 NTFS HPFS MFS, HFS, HFS Plus ISO9660 (incl. Joliet, El Torito) UDF ext2/ext3 ext4 (patch from upstream CVS) btrfs (patch from upstream CVS) Minix ReiserFS Reiser4 Linux romfs Linux cramfs Linux squashfs UFS (some variations) SysV FS (some variations) JFS XFS Amiga FS/FFS Amiga SFS Amiga PFS BeOS BFS QNX4 FS 3DO CD-ROM FS Veritas VxFS Xbox DVD file system Partitioning: DOS/PC style EFI GPT Apple Amiga “Rigid Disk” ATARI ST (AHDI3) BSD disklabel Linux RAID physical disks Linux LVM1 physical volumes Linux LVM2 physical volumes Solaris SPARC disklabel Solaris x86 disklabel (vtoc) Other structures: Debian split floppy header Linux swap Disk images: Raw CD image (.bin) Virtual PC hard disk image Apple UDIF disk image (limited) Boot loaders: LILO GRUB SYSLINUX ISOLINUX Linux kernel FreeBSD loader Windows/MS-DOS loader BeOS loader, Haiku loader Sega Dreamcast Compression formats: gzip compress bzip2 Archive formats: tar cpio bar dump/restore

There are three methods to install disktype on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install disktype Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install disktype using apt-get by running the following command:

sudo apt-get -y install disktype

Install disktype Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install disktype using apt by running the following command:

sudo apt -y install disktype

Install disktype Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install disktype using aptitude by running the following command:

sudo aptitude -y install disktype

How To Uninstall disktype on Debian 10

To uninstall only the disktype package we can use the following command:

sudo apt-get remove disktype

Uninstall disktype And Its Dependencies

To uninstall disktype and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove disktype

Remove disktype Configurations and Data

To remove disktype configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge disktype

Remove disktype configuration, data, and all of its dependencies

We can use the following command to remove disktype configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge disktype

Dependencies

disktype have the following dependencies:

References

Summary

In this tutorial we learn how to install disktype package on Debian 10 using different package management tools: apt, apt-get and aptitude.