Linux – How to check if ftp is installed in a linux server

ftplinux

I just want to know if a FTP server is installed on my server. It is a Red Hat Enterprise Linux Server release 5.8 (Tikanga). I tried running the below command and got connection refused :

$ ftp localhost
ftp: connect: Connection refused

Best Answer

If you know the package name you could do something like

dpkg -l vsftpd

to see what the package is about.

If you don't have any idea about package name

On debian or debian based systems you may do

dpkg -l | grep ftp # grab everthing that contain ftp 

And with the results, you may do

dpkg -p result

On Redhat or Redhat based systems like Fedora , you may do

rpm -qa | grep ftp

and with the results

rpm -qi result # to know more about the package, whether it is the server itself or some suplimentary

On Systems like Fedora

yum list installed | grep ftp

Then do

yum info package_name
Related Question