apt-get does not exist on my CentOS release 5.4
hello
apt-get does not exist on my server: when i run this command: apt-get install php5-dev i get: Code:
apt-get: command not found in usr/bin there's nothing called apt-get i have root access (SSH) |
try
Code:
sudo apt-get install php5-dev HTH |
I thought you evter your password with sudo, not root.
|
At least in Ubuntu, sudo uses the primary user password, not the root password.
But in Debian, you would "su" to root and then issue the command (without sudo) N'est-ce pas? |
Quote:
|
je ne crois pas :)
Quote:
|
Its moot anyway, OP has root.
And, as OP says, apt-get isn't where it ought to be, in /usr/bin. Yeesh, does nobody read any more? |
Try:
running apt-get as root. (no sudo) using "locate" to find the command checking your PATH using "echo $PATH" searching for apt-get using "find" |
**SORRY FOR DOUBLE POST, FORGOT TO ANSWER THE QUESTION**
OP: you wouldn't be the first to do this, but are you totally sure you're using debian? I've done that before. Code:
cat /etc/issue |
Quote:
Code:
[username@host]$ su |
Quote:
|
Well OP isn't, the suggestions are to use sudo, but the first post says the command used is apt-get install php5-dev.
Which is why its moot |
An alternative way to use su:
Code:
$ su -c 'apt-get install php5-dev' |
Quote:
my apologies it's really not my mistake... anyway how can i fix my problem on CentOS? :( |
yum install <package>
|
All times are GMT -5. The time now is 08:35 PM. |