Question:
centOS commands...how would i translate this:?
2011-04-22 16:00:00 UTC
Ok this is the command for ubuntu but how do i translate this to centOS?

wget www.ehcp.net/download
tar -zxvf ehcp_latest.tgz
cd ehcp
./install.sh
Four answers:
Gordon B
2011-04-22 18:00:11 UTC
Its basic linux script. To get wget to work you need to install it, centos is yum based so do



yum install wget





wget gets a file from www.ehcp.net/download

tar -zxvf ehcp_latest.tgz decompresses it (similar to unzipping)

cd ehcp moves into the decompressed directory

./install.sh executes a script file called install.sh contined within that directory



It then does whatever is inside install.sh as long as the install.sh file doesn't do anything specific to ubuntu just do the same.



For future reference if you can't find a centos specific answer search for Fedora Core rather than Ubuntu. Fedora and centOS are RPM based installers and ubuntu/debian are .DEB based installers.
j d
2011-04-22 16:04:27 UTC
No difference for a centos Bash script.



Except for the change directory and the launch of the script everything is just external program calls.



Make sure you have wget and tar installed from the correct rpms. Most setups will already have these in place.



English description of this code:



fetch some file (ehcp_latest.tgz) from ftp://www.ehcp.net/download to the current directory

Use the tar utility to extract the files to the current directory

Go into the ehcp directory

Run the script called install.sh from this directory





My first concern with this code is that the directory is not set at the beginning.

I would suggest the following above the wget



cd ~



That's a tilde.

This will set the default directory to the user's home directory





Second, the protocol is not specified on the wget command. Wget defaults to ftp.

I think you want this instead



wget http://www.ehcp.net/download







Lastly, the tar command will probably not leave the install.sh script executable so you may need



chmod 755 install.sh



right after the cd ehcp
2014-09-29 13:19:02 UTC
Hey,

You can get the latest version of Winrar here: http://j.mp/1p3PFMX



I like Winrar because it's a very good program to compress/decompress files in many different formats. You could also use other programs like 7zip or winzip for the same purpose but I think Winrar is the best option avalable. The funcionalities are pretty much the same for each program (you basically do everything with a simple right-click of your mouse) but Winrar is by far the best option.

The things I like about winrar is that it opens a bunch of compressed formats: .zip, .rar, .7z / 7zip, .iso, .tar, .jar etc. (much more than the other programs) and that it's 100% (trial period never expired so you can use it for free with no limitations)

These are the reasons why I recommend Winrar.

Have a nice day
David A
2011-04-22 16:07:15 UTC
I think its just the same actually....not 100% sure though...



I did something on centos the other day that was similar...however after i found that it couldnt find my directory when i was extracting the .tgz



So i did this...try it:



cd \

wget www.ehcp.net/download

tar -zxvf ehcp_latest.tgz

cd ehcp

./install.sh



If that doesnt work try this:



cd \

wget www.ehcp.net/download

tar -xvf ehcp_latest.tgz

cd ehcp

./install.sh



Not too sure as im pretty sure to CentOS myself, but thought i may try to help :)



Good luck!!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...