LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 12-27-2012, 11:13 PM   #1
Drokare
LQ Newbie
 
Registered: Apr 2008
Posts: 7

Rep: Reputation: 0
Question 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!!
 
Old 12-27-2012, 11:24 PM   #2
Drokare
LQ Newbie
 
Registered: Apr 2008
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 12-29-2012, 08:30 AM   #3
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
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

Last edited by wmakowski; 12-29-2012 at 08:31 AM.
 
1 members found this post helpful.
Old 12-29-2012, 10:28 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,096

Rep: Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583
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 ?

Last edited by John VV; 12-29-2012 at 10:30 AM.
 
1 members found this post helpful.
Old 12-30-2012, 04:54 AM   #5
Drokare
LQ Newbie
 
Registered: Apr 2008
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installed rpm packages database: explicit and dependency packages leniviy Linux - Newbie 4 09-07-2012 03:31 AM
[SOLVED] How can I search for unofficial packages in Slackware? *Packages like guake terminal* theif519 Slackware 7 06-24-2011 06:30 PM
apt/dpkg: How do I segregate user application packages from system packages? boxyzzy Ubuntu 2 12-03-2010 11:04 AM
Installation of packages in RHEL-5.3 using X windows menu Add/Remove packages akluthra Linux - Newbie 2 09-21-2010 05:34 AM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM


All times are GMT -5. The time now is 12:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration