Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The output of the which tells us that the tree command is not installed. The output of
Code:
echo $PATH
tells us, that the pathes are already set correctly. tree will be installed into /usr/bin/ and this directory is in the path.
Therefore no need to change anything at the PATH variables.
[root@localhost hgfs]# ls -al total 11 dr-xr-xr-x 1 root root 4192 Nov 18 15:02 . drwxr-xr-x 3 root root 4096 Oct 3 02:09 .. drwxrwxrwx 1 root root 0 Aug 14 12:18 ORCL INSTALLATION DOCS drwxrwxrwx 1 root root 0 Aug 14 11:40 sharing drwxrwxrwx 1 root root 0 Nov 18 13:42 TREE
PHP Code:
[root@localhost hgfs]# cd TREE/ [root@localhost TREE]# ls -al total 24 drwxrwxrwx 1 root root 0 Nov 18 13:42 . dr-xr-xr-x 1 root root 4192 Nov 18 15:02 .. -rwxrwxrwx 1 root root 42706 Nov 18 13:41 tree-1.6.0.tgz
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
PHP Code:
[root@localhost TREE]# yum install tree Setting up Install Process Setting up repositories Cannot find a valid baseurl for repo: update Error: Cannot find a valid baseurl for repo: update
PHP Code:
[root@localhost TREE]# yum install tree-1.6.0.tgz Setting up Install Process Setting up repositories Cannot find a valid baseurl for repo: update Error: Cannot find a valid baseurl for repo: update
yum install tree worked fine for me on Cent O/S.
I don't know your settings for yum,
and usually configuration files will be stored in /etc/yum.repos.d directory.
Code:
yum install tree-1.6.0.tgz
The above does not work, you have to use only yum install tree. Since tree-1.6.0.tgz is a tar.gzip file you have uncompress it first.
Anyway you already have the tree-1.6.0.tgz file or you can also download it from here.
I just tried on cent O/S by manually installing it and it worked nicely.
So just follow the below steps.
Code:
tar -xzvf tree-1.6.0.tgz
cd tree-1.6.0/
make
make install
Thats it!
Code:
tree
if you find any error, find the tree path using
Code:
whereis tree
or
which tree
You may find it in /usr/bin directory now use
Code:
/usr/bin/tree
/usr/bin/tree -a /tmp
Last edited by mandyapenguin; 11-18-2012 at 08:41 AM.
Problem solved ... Please see the attachment i am getting
tree command output.
Thanks to all replies ... to all linuxions!
Really i got so many answers from everyone! Thanks to all;
My Questions
1.What's was the exact problem to install this ? when i googled , i was trying to execute some commands.
2.what is the specific reason some commands are not working? for ex :
PHP Code:
[root@localhost ~]# cat /etc/*-version cat: /etc/*-version: No such file or directory
3. How can i check my OS is good or not ?
4. IF u don't mind , can you provide good link to download OEL?
It's for my own practice ... atleast good version to support.
@thiyagusham:
The 'yum' command only work if you OS is not end of lifed. Your version is TOO OLD, full of SECURITY VULNERABILITIES and is NOT RECOMMENDED. Linux is free, just install something newer. According to the informations you posted, your OS has received no updated in 6 years. Installing 'tree' on a modern system is simply 'yum install tree' and nothing else. Installing tree from source DAMAGE YOUR SYSTEM by populating /usr with untracked files.
As for the other questions, I already answered them in my previous post. Your OS is _NOT_ good, it is outdated not only by the time since its inception, but by the fact that security updates don't seem to have been applied at all since it was installed. This is not only dangerous for the integrity of the network this system reside in, but is also a very, very bad way of learning Linux because you _have_ to do thing wrong so it can work.
Oracle Linux is not free. It cost money and if you don't plan to pay this money, use CentOS. CentOS is 100% compatible with OEL and RHEL. They are all built in the same source code. While OEL have some extra features like ZFS and DTrace from Solaris and no-reboot kernel updates, that's about it. CentOS is free and provide free updates. It can be downloaded from their website and will be supported for the same period as OEL and RHEL. Of course, all you get is forum support instead of phone one, but you can buy real support from many companies, including Oracle (if they still offer that, I haven't checked in a while).
As for the images, I think there is a 30 day demo somewhere, but you need to pay for the real deal anyway. So if you want to download a OEL compatible image, get CentOS. Do not, for no reasons what so ever install OEL if you don't plan to pay for it for the lifetime of the OS.
EDIT:
Look: http://lwn.net/Articles/525230/#Comments
Both OEL, RHEL, CentOS and SL all have the same updates the same day, this is because they are all based on RHEL source code. As soon as one get something, so the others. In fact, CentOS had that kernel update OEL had that day more than 30 hours earlier.
As per Elv13, 'Enterprise Linux Enterprise Linux AS release 4 (October Update 4)' is dead and gone. RH (& therefore Centos, SL, OEL) only support versions 5 & 6.
If you want paid support, use RHEL or OEL. If you want free/do your own support, go Centos or SL. https://access.redhat.com/support/po...pdates/errata/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.