yum

Linux / CentOS install basic command line functions

I'm fairly new to linux I have ubuntu installed on a machine at home and now have a remote server with CentOS but certain commands not working like I'd expect.

whois, locate always return - -bash: locate: command not found

Trying to install it.


yum install locate
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons | 951 B 00:00

How do I tell which version of Linux I have

I have a dedicated server but software seems quite outdated now (Fedora something) yum and apt-get fail and think its time to upgrade or change my repos but not sure what version of linux I have on it.

I'd like to be able to just update what I not sure how to set up repos

Syndicate content