# Compile Linux

### From CGSecurity

## Fedora, RedHat Enterprise, CentOS

- RedHat 9: `rpm -Uvh ncurses-devel*.rpm ncurses-devel*.rpm libjpeg-devel*.rpm`
- Fedora Core 3: `yum install ncurses-devel ncurses-devel libjpeg-devel`
- Fedora Core 4: `yum install ncurses-devel ncurses-devel libjpeg-devel`
- Fedora Core 5: `yum install ncurses-devel ncurses-devel libjpeg-devel ntfsprogs-devel`
- Fedora Core 6: `yum install ncurses-devel ncurses-devel libjpeg-devel ntfsprogs-devel`
- Fedora 7: `yum install ncurses-devel ncurses-devel libjpeg-devel ntfsprogs-devel libewf-devel`
- Fedora 8: `yum install ncurses-devel ncurses-devel libjpeg-devel ntfsprogs-devel libewf-devel`
- RHEL 4: `yum install ncurses-devel ncurses-devel libjpeg-devel`
- RHEL 5: `yum install ncurses-devel ncurses-devel libjpeg-devel ntfsprogs-devel`

Packages not available need to be compiled for a full feature version.

## Linux distribution using RPM

To install TestDisk rpm, run

    rpm -Uvh testdisk-*.i386.rpm

If it doesn't work, you may have to rebuild the RPM for your distribution using

    rpmbuild --recompile testdisk-5.2-1.src.rpm

## Debian, Ubuntu

    apt-get install build-essential e2fslibs-dev libncurses5-dev libntfs-dev libjpeg62-dev libreiserfs0.3-dev uuid-dev

Back to TestDisk compilation

Category: Data Recovery

##### Data Recovery

- TestDisk
- PhotoRec
- download