How To Install disktype on Kali Linux
Introduction
In this tutorial we learn how to install disktype on Kali Linux.
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/exFAT 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 F2FS 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 Kali Linux. 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 updateAfter updating apt database, We can install disktype using apt-get by running the following command:
sudo apt-get -y install disktypeInstall disktype Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install disktype using apt by running the following command:
sudo apt -y install disktypeInstall disktype Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install disktype using aptitude by running the following command:
sudo aptitude -y install disktypeHow To Uninstall disktype on Kali Linux
To uninstall only the disktype package we can use the following command:
sudo apt-get remove disktypeUninstall disktype And Its Dependencies
To uninstall disktype and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove disktypeRemove disktype Configurations and Data
To remove disktype configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge disktypeRemove 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 disktypeDependencies
disktype have the following dependencies:
References
Summary
In this tutorial we learn how to install disktype package on Kali Linux using different package management tools: apt, apt-get and aptitude.