LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-26-2017, 01:23 PM   #1
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Rep: Reputation: 0
Downloading Packages using yum*


Dear all,

I am getting bit confused.
I tried 2 ways to install oracleasm* package.

Option 1 --> was failed
Option 2 --> got succeeded.


Question 1 ) Why Option 1 was failed ?



>> Option 1 :
PHP Code:
# wget [url]http://yum.oracle.com/public-yum-el5.repo[/url]  
--2017-08-25 15:06:14--  [url]http://yum.oracle.com/public-yum-el5.repo[/url]  
Resolving yum.oracle.com... 49.44.120.7349.44.120.97  
Connecting to yum
.oracle.com|49.44.120.73|:80... connected.  
HTTP request sentawaiting response... 200 OK  
Length
4886 (4.8K) [text/plain]  
Saving to: `public-yum-el5.repo'  
  
  
100%[===============================================================================>] 4,886       --.-K/s   in 0.004s   
  
  
2017-08-25 15:06:15 (1.25 MB/s) - 
`public-yum-el5.repo' saved [4886/4886]  
 
>>
[root@DGPRIM yum.repos.d]# yum install oracleasm-`uname -r`  
Loaded plugins: security  
Setting up Install Process  
No package oracleasm-2.6.18-194.el5 available.  
Nothing to do 
>>
Quote:
# ls -l
total 8
-rw-r--r-- 1 root root 4886 May 5 01:04 public-yum-el5.repo
[root@DGPRIM yum.repos.d]# rm -rf *

>> Option 2
PHP Code:
# pwd
/etc/yum.repos.d
 
#vi oracleasm.repo  
[Oracleeasm]  
name=Oracle ASMLib Kernel Drivers for Red Hat Enterprise Linux Server 5  
baseurl
=http://yum.oracle.com/repo/OracleASM/RHEL5/$basearch/    
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle   
gpgcheck=1   
enabled
=1   
 
>>
 
# yum install oracleasm-`uname -r` -y  
Loaded pluginssecurity  
Setting up Install Process  
Resolving Dependencies  
--> Running transaction check  
---> Package oracleasm-2.6.18-194.el5.i686 0:2.0.5-1.el5 set to be updated  
--> Processing Dependencyoracleasm-support >= 2.0.0 for packageoracleasm-2.6.18-194.el5  
--> Running transaction check  
---> Package oracleasm-support.i386 0:2.1.8-1.el5 set to be updated  
--> Finished Dependency Resolution  
  
  
Dependencies Resolved  
  
  
=========================================================================================================================  
Package                                 Arch                Version                     Repository                 Size  
=========================================================================================================================  
Installing:  
oracleasm-2.6.18-194.el5                i686                2.0.5-1.el5                 Oracleeasm                 22 k  
Installing 
for dependencies:  
oracleasm-support                       i386                2.1.8-1.el5                 Oracleeasm                 83 k  
  
  
Transaction Summary  
=========================================================================================================================  
Install       2 Package(s)  
Upgrade       0 Package(s)  
  
  
Total download size105 k  
Downloading Packages
:  
(
1/2): oracleasm-2.6.18-194.el5-2.0.5-1.el5.i686.rpm                                              |  22 kB     00:00      
(2/2): oracleasm-support-2.1.8-1.el5.i386.rpm                                                     |  83 kB     00:00      
-------------------------------------------------------------------------------------------------------------------------  
Total                                                                                    333 kB/105 kB     00:00      
Running rpm_check_debug  
Running Transaction Test  
Finished Transaction Test  
Transaction Test Succeeded  
Running Transaction  
  Installing     
oracleasm-support                                                                                 1/2  
  Installing     
oracleasm-2.6.18-194.el5                                                                          2/2  
  
  
Installed
:  
  
oracleasm-2.6.18-194.el5.i686 0:2.0.5-1.el5                                                                             
  
Dependency Installed
:  
  
oracleasm-support.i386 0:2.1.8-1.el5                                                                                    
  
Complete

Question 2)

Why we cannot query oracleasm related packages under /etc/yum.repos.d ?
Please see the path for following commands

PHP Code:
[root@DGPRIM yum.repos.d]# rpm -qa oracleasm*  
[root@DGPRIM yum.repos.d]# rpm -qa | grep oracleasm*  
 
>>
 
# cd  
# rpm -qa oracleasm*  
oracleasm-2.6.18-194.el5-2.0.5-1.el5  
oracleasm
-support-2.1.8-1.el5  
  
[root@DGPRIM ~]# rpm -qa | grep oracleasm*  
oracleasm-2.6.18-194.el5-2.0.5-1.el5  
oracleasm
-support-2.1.8-1.el5 
Thanks ...

Last edited by Joy Stick; 08-26-2017 at 01:27 PM.
 
Old 08-26-2017, 02:07 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
I don't know for sure, but I noticed the baseurl for option 2, which worked, is this. But it's not in the .repo file you downloaded in option 1.
Code:
baseurl=http://yum.oracle.com/repo/OracleASM/RHEL5/$basearch/
For question 2, the problem might just be an issue of command-line expansion. In directory yum.repos.d the file "oracleasm.repo" matches "oracleasm*", so the asterisk (*) get's expanded and the rpm sees it as "oracleasm.repo". But there's no matching file in your root directory, so the asterisk gets passed to the rpm command--which is what you intended.

If that's what's happening, you can fix it by putting quotes around the wildcard.
 
1 members found this post helpful.
Old 08-26-2017, 06:11 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Joy Stick you seem to always be starting threads about RHEL, Oracle, and Yum.

It is not helpful to create new threads and leave the other ones unresolved.

This is your warning to stop this behavior.
 
2 members found this post helpful.
Old 08-27-2017, 06:24 AM   #4
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi,


Quote:
This is your warning to stop this behavior.
It seems to ridiculous. Instead of helping me out of this problem , you are threatening me ..
I am NOT asking same questions over and over again.
Questions are regarding yum with various packages.

@ FYI: Still i did not get exact answer for my question.
 
Old 08-27-2017, 06:57 AM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Joy Stick View Post
Hi,
It seems to ridiculous. Instead of helping me out of this problem , you are threatening me ..
I am NOT asking same questions over and over again.
Questions are regarding yum with various packages.

@ FYI: Still i did not get exact answer for my question.
If your using RHEL, why are you not seeking support from Red Hat?? If I were paying for support from them, I would be opening a support case with them.

You should also remember that members here, are NOT getting paid to help you.

I suggest you contact Red Hat for support.
 
Old 08-27-2017, 07:05 AM   #6
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by Joy Stick View Post
@ FYI: Still i did not get exact answer for my question.
I found this page that says to do what you did--create oracleasm.repo.

I'm sure you would rather use an official .repo file, but the fact that Oracle is giving those instructions instead of telling which .repo file to download suggests that they have not made the ASMLib packages available via any official .repo file.

That should answer question 1. If my answer for question 2 isn't correct, please tell me.
 
1 members found this post helpful.
Old 08-27-2017, 07:39 AM   #7
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi jsbjsb001

I am always using Oracle Linux 5.x and 6.x


@ jsbjsb001 wrote


Quote:
But there's no matching file in your root directory, so the asterisk gets passed to the rpm command--which is what you intended.
I am NOT clear on above statement. Please elaborate bot more.
Why it has to check root directory ?

Thanks js
 
Old 08-27-2017, 09:31 AM   #8
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by Joy Stick View Post
Why it has to check root directory ?
Oops. My mistake. I said "root directory" when I should have said "home directory".

When you issue the command rpm -qa oracleasm* the shell looks in the current directory to see if any file matches "oracleasm*". In first case, in /etc/yum.repos.d, it found one, so it replaced "oracleasm*" with "oracleasm.repo" and passed it to "rpm" when it executed it. That's not what you wanted.

But then you switched to your home directory, which apparently does NOT have any file that matches oraceleasm*, so it passed the parameter to rpm just as you typed it.

To get it to work in all cases, use quotes. In fact anytime you want to pass a wildcard character as a parameter, you should always wrap it in quotes.
Code:
rpm -qa 'oracleasm*'
 
2 members found this post helpful.
Old 08-30-2017, 09:05 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Joy Stick View Post
Hi,
It seems to ridiculous. Instead of helping me out of this problem , you are threatening me .. I am NOT asking same questions over and over again. Questions are regarding yum with various packages. @ FYI: Still i did not get exact answer for my question.
That is because you are either ignoring the answer, or don't understand it.

You were told explicitly that the version of OEL you're using is too old, and the repos aren't going to have what you're looking for, or are unavailable. Period. Your repo file explicitly states that you have an RHEL repo enabled...and RHEL is not supported any longer. Want to use RHEL repositories? Then PAY FOR RHEL as you've been told. Want to use OEL? Great...go get the latest version that will actually have what you're after.

Changing one package name and giving the same error over and over *IS* the same question...they're all related.
 
2 members found this post helpful.
Old 08-30-2017, 11:43 PM   #10
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi

Want to use OEL? Great...go get the latest version that will actually have what you're after.

Yes. I am moving to OEL 6.8 from OEL 5.5
 
  


Reply



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
how to disable packages downloading when running yum hahacc Linux - Newbie 4 04-29-2015 04:42 PM
Downloading using yum jonn.moon Linux - Newbie 18 10-12-2010 04:10 AM
Yum update process stops after showing line "Downloading Packages" eagleman Red Hat 4 04-06-2010 03:10 PM
Downloading packages problem ftblplyr46 Linux - Newbie 3 03-30-2008 03:59 PM
Downloading Packages lloyd_smart Linux From Scratch 13 01-19-2005 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration