LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   What packages do I need? (http://www.linuxquestions.org/questions/fedora-35/what-packages-do-i-need-4175443202/)

Drokare 12-28-2012 12:13 AM

What packages do I need?
 
Fedora 17 x64

su
echo $PATH
/sbin:/bin/usr/sbin/usr/bin

less .bashrc (I am in a home directory)
bash: less: command not found

tar is not found, seems a lot of basic commands are not found.

This server is an Amazon EC2 server image of Fedora 17. Anyone know what packages I need to install to place these common commands back on the server?

Thanks in advance!!

Drokare 12-28-2012 12:24 AM

Even the command "man" is not found. I really don't want to try to do a complete rebuild. I have this server as my first in the EC2 cloud and it will be our Corporate Web/Forum and NameServer.

wmakowski 12-29-2012 09:30 AM

It looks like your $PATH is out of sorts. Chances are everything you need is already on your computer. You will need to edit the PATH environment variable in .bash_profile to make the change permanent.

I'm guessing this is root. You should be able to reset your $PATH temporarily at the command line with
Code:

[root@yourhost ~]# PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
After that you should then be able to access other commands like less, vi, etc. to view and edit your .bash_profile. If you run into trouble, post your .bash_profile and .bashrc.

There are other places that the PATH is set, but this is most likely where the problem lies. A brand new user should come up working fine. If it doesn't something is amiss in /etc/profile or elsewhere.

Bill

John VV 12-29-2012 11:28 AM

most commands are only usable by "root"
but not all

i am guessing you edited the file /ect/profile

fedora splits up some programs into the "/bin" and /sbin
sbin will be in the root account $PATH
but NOT the normal user -- there is NO program in there that a normal user can use


however in your normal user home folder there is a hidden file " .bash_profile"

/usr/bin ans /bin should be in that

Quote:

/sbin:/bin/usr/sbin/usr/bin
is this a typo ?
it is missing things -- a few :::::
/sbin:/bin:/usr/sbin:/usr/bin
Quote:

This server is an Amazon EC2 server image of Fedora 17
?
so this install is a disk image of some other computer
and just dropped onto a new and different computer ?

or something else ?

Drokare 12-30-2012 05:54 AM

Come to find out the commands did not exist??

yum install less tar man-db

did the trick, apparently whomever created the image felt these were not required files???

Thanks for your help


All times are GMT -5. The time now is 07:34 AM.