Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-28-2012, 12:13 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 7

Rep: Reputation: 0
Question What packages do I need?

Fedora 17 x64

echo $PATH

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-28-2012, 12:24 AM   #2
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, 09:30 AM   #3
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 20, 21, 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
[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.


Last edited by wmakowski; 12-29-2012 at 09:31 AM.
1 members found this post helpful.
Old 12-29-2012, 11:28 AM   #4
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,659

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

is this a typo ?
it is missing things -- a few :::::
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 11:30 AM.
1 members found this post helpful.
Old 12-30-2012, 05:54 AM   #5
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


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

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

All times are GMT -5. The time now is 09:02 PM.

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