In this article we are going to learn the commands and steps to install testdisk package on Ubuntu 16.10.
Ads
Quick installation of testdisk:
Step 1: Update system:
sudo apt-get update
Step 2: Install: testdisk
Ater updaing the OS run following command to install the packae:
sudo apt-get install testdisk
Package Details | |
Package: | testdisk |
Version: | 7.0-1build1 |
Maintainer: | Ubuntu Developers |
Home page: | |
Description: | Partition scanner and disk recovery tool, and PhotoRec file recovery tool TestDisk checks the partition and boot sectors of your disks. It is very useful in forensics, recovering lost partitions. It works with : * DOS/Windows FAT12, FAT16 and FAT32 * NTFS ( Windows NT/2K/XP ) * Linux Ext2 and Ext3 * BeFS ( BeOS ) * BSD disklabel ( FreeBSD/OpenBSD/NetBSD ) * CramFS (Compressed File System) * HFS and HFS+, Hierarchical File System * JFS, IBM's Journaled File System * Linux Raid * Linux Swap (versions 1 and 2) * LVM and LVM2, Linux Logical Volume Manager * Netware NSS * ReiserFS 3.5 and 3.6 * Sun Solaris i386 disklabel * UFS and UFS2 (Sun/BSD/...) * XFS, SGI's Journaled File System . PhotoRec is file data recovery software designed to recover lost pictures from digital camera memory or even Hard Disks. It has been extended to search also for non audio/video headers. It searches for following files and is able to undelete them: * Sun/NeXT audio data (.au) * RIFF audio/video (.avi/.wav) * BMP bitmap (.bmp) * bzip2 compressed data (.bz2) * Source code written in C (.c) * Canon Raw picture (.crw) * Canon catalog (.ctg) * FAT subdirectory * Microsoft Office Document (.doc) * Nikon dsc (.dsc) * HTML page (.html) * JPEG picture (.jpg) * MOV video (.mov) * MP3 audio (MPEG ADTS, layer III, v1) (.mp3) * Moving Picture Experts Group video (.mpg) * Minolta Raw picture (.mrw) * Olympus Raw Format picture (.orf) * Portable Document Format (.pdf) * Perl script (.pl) * Portable Network Graphics (.png) * Raw Fujifilm picture (.raf) * Contax picture (.raw) * Rollei picture (.rdc) * Rich Text Format (.rtf) * Shell script (.sh) * Tar archive (.tar ) * Tag Image File Format (.tiff) * Microsoft ASF (.wma) * Sigma/Foveon X3 raw picture (.x3f) * zip archive (.zip) |
Distro: | Ubuntu 16.10 |
Release: | |
Repo/Section: | universe/admin |
First of all update your system with the command:
sudo apt-get update
Ads
Above command will download the package lists for Ubuntu 16.10 on your system. This will update the list of newest versions of packages and its dependencies on your system.
After downloading the latest package list with the help of above you can run the installation process.
If testdisk is not installed on your compter then the command 'dpkg -L testdisk' will give followin error.
deepak@deepak-VirtualBox:~$ dpkg -L testdisk dpkg-query: package 'testdisk' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. deepak@deepak-VirtualBox:~$
Installing testdisk:
After system update use the following command to install testdisk:
sudo apt-get install testdisk
Above command will confirm before installing the package on your Ubuntu 16.10 Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.
Now we will see the commands for uninstalling the testdisk from Ubuntu 16.10. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.
To remove the testdisk following command is used:
sudo apt-get remove testdisk
Following command is used to remove the testdisk package along with its dependencies:
sudo apt-get remove --auto-remove testdisk
This will remove testdisk and all its dependent packages which is no longer needed in the system.
Completely removing testdisk with all configuration files:
Following command should be used with care as it deletes all the configuration files and data:
sudo apt-get purge testdisk
or you can use following command also:
sudo apt-get purge --auto-remove testdisk
Above command will remove all the configuration files and data associated with testdisk package. You can can't recover the delete data, so, use this command with care.