{"id":27724,"date":"2018-08-09T07:00:04","date_gmt":"2018-08-09T12:00:04","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=27724"},"modified":"2023-04-05T02:19:44","modified_gmt":"2023-04-05T07:19:44","slug":"how-to-install-tar-gz-in-centos","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tar-gz-in-centos\/","title":{"rendered":"How to Install tar.gz in CentOS"},"content":{"rendered":"
<\/div>\r\n
\"How<\/figure>\r\n\r\n\r\n\r\n

Most of the time you’ll be installing packages with the built-in Linux package manager. For CentOS, that’s yum. For Debian, it’s apt-get and so on. If you’re lucky. Unfortunately, not all useful software is neatly packaged in repositories.<\/p>\r\n\r\n\r\n\r\n

\r\n
\"install<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n

 <\/p>\r\n\r\n\r\n\r\n

 <\/p>\r\n\r\n\r\n\r\n

There’s a lot of it lying wild out there, just waiting to be compiled and installed. In this article, we’ll show you how to install tar.gz files using the traditional manner on a fresh CentOS install.<\/p>\r\n\r\n\r\n\r\n

<\/p>\r\n\r\n\r\n\r\n

The RIGHT Way to Install tar.gz Files<\/h3>\r\n\r\n\r\n\r\n

One of the reasons why package managers like yum are so useful is that they take care of cleaning up after you’re done. To uninstall a package, we just need to type:<\/p>\r\n\r\n\r\n\r\n

yum remove xyz<\/pre>\r\n\r\n\r\n\r\n

However, packages in the wild might not be well made. There might not be a default way to remove the package and all its files. Later on, we’ll show you a safe way to do this so that you can remove packages completely even without an uninstaller. But for now, we’re going to assume that the package you want to install is well made and adheres to the important coding standards.<\/p>\r\n\r\n\r\n\r\n

Permissions to Compile and Install tar.gz Files<\/h3>\r\n\r\n\r\n\r\n

The final process of installing these files requires root permissions. If you’re not logged in as root (and ideally you shouldn’t be!), then you’ll need to use the “sudo” command. If you don’t have a user capable of running sudo, then either you create one, or log in as root yourself. So let’s get started!<\/p>\r\n\r\n\r\n\r\n

\n

Table of Contents<\/p>\n