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.
>> [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 plugins: security 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 Dependency: oracleasm-support >= 2.0.0 for package: oracleasm-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
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.
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by Joy Stick
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.
@ 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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.