LinuxQuestions.org
Review your favorite Linux distribution.
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 12-09-2015, 04:37 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 485

Rep: Reputation: 29
why yum didnt work but rpm did?


hi guys

this is more of a fact finding mission than solving a problem

was just curios,i was trying to install vlc media player (as the default media player wasnt playing some video tutorials i have and was battling installing on centos7 after googling a bit i found threads that were saying you needed to add two repos then run:

yum install vlc

i added the repos with yum -y install epel-release
then tried to run the yum install vlc...found nothing...i updated yum and tried again...nothing
running the command again though the terminal was telling me that EL 7 was installed

i then downloaded and installed the rpm from here:

http://li.nux.ro/repos.html

and installed it...and vlc installed

why is this...sorry just trying to learn about this stuff..
 
Old 12-09-2015, 05:01 PM   #2
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
VLC is not located in the default repositories in CentOS ver.7... You need to enable the EPEL repositories to use yum to install it...
 
Old 12-09-2015, 05:22 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Quote:
Originally Posted by JaseP View Post
VLC is not located in the default repositories in CentOS ver.7... You need to enable the EPEL repositories to use yum to install it...
VLC isn't in the EPEL repo for CentOS 7 (that's what the OP tried and it didn't work). You need the nux-desktop repo for it (that's what the OP tried and it did work).

Last edited by suicidaleggroll; 12-09-2015 at 05:24 PM.
 
Old 12-09-2015, 06:51 PM   #4
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 485

Original Poster
Rep: Reputation: 29
yes thats true...but why didnt it work installing the repo via the terminal...but did when i used the rpm? are rpm's more up to date/reliable than commands you find on the internet? ...is that it?
 
Old 12-09-2015, 06:58 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
There are two different repos at play here, don't confuse them.

First you installed epel, epel on CentOS 7 does not contain vlc, so when you then tried to install vlc, it failed

Then you installed nux-desktop, nux-desktop on CentOS 7 does contain vlc, so when you then tried to install vlc, it worked

The difference was simply which repo you added, not the way that you added it.
You just happened to enable the epel repo with yum, and enabled the nux-desktop repo with rpm. You could have easily enabled either of them by editing the yum repo files by hand instead, the results would have been the same. You simply needed to add the repo that contained vlc, and epel wasn't it.
 
Old 12-09-2015, 07:08 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Also, you should seriously consider installing and configuring yum-plugin-priorities to prevent yum from pulling in newer/incompatible libraries from these 3rd party sources and breaking half your system.
 
Old 12-09-2015, 07:58 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,412

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Definitely add yum-plugin-priorities to protect the base repos etc http://www.server-world.info/en/note...itial_conf&f=6
https://wiki.centos.org/AdditionalRe...s/Repositories
https://wiki.centos.org/PackageManag...Yum/Priorities
 
Old 12-09-2015, 09:43 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
as i recall the yum-priorites is for 5 and 6

with 7 the reops were merged ( official ones)

https://wiki.centos.org/AdditionalRe...s/Repositories

BUT multi media on rhel/cent/sl has been a low priority
with rhel making a rather lousy home desktop OS
and in a office setting there should be a IT Dept. to install the needed things

and with vlc and mplayer on a headless server is a non starter
--redhat docs
https://access.redhat.com/documentat...de/ch-yum.html
 
Old 12-09-2015, 10:03 PM   #9
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
Quote:
Originally Posted by John VV View Post
BUT multi media on rhel/cent/sl has been a low priority
with rhel making a rather lousy home desktop OS
and in a office setting there should be a IT Dept. to install the needed things
... Which is why;
A) I should have kept my "mouth" shut about it, &
B) Why I prefer Debian package management over RedHat...
 
Old 12-10-2015, 11:32 AM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Quote:
Originally Posted by John VV View Post
as i recall the yum-priorites is for 5 and 6
It's very much for 7 as well once you start adding in 3rd party repos, as the OP has.

Even just adding in EPEL and RPMForge:
Code:
# yum update
Loaded plugins: fastestmirror, priorities
base                                                       | 3.6 kB  00:00:00     
epel/x86_64/metalink                                       |  13 kB  00:00:00     
epel                                                       | 4.3 kB  00:00:00     
extras                                                     | 3.4 kB  00:00:00     
rpmforge                                                   | 1.9 kB  00:00:00     
updates                                                    | 3.4 kB  00:00:00     
virtualbox/7/x86_64/signature                              |  198 B  00:00:00     
virtualbox/7/x86_64/signature                              |  951 B  00:00:00 !!! 
(1/2): epel/x86_64/updateinfo                              | 426 kB  00:00:00     
(2/2): epel/x86_64/primary_db                              | 3.7 MB  00:00:01     
Loading mirror speeds from cached hostfile
 * base: centos.aol.com
 * epel: mirror.symnds.com
 * extras: centos.den.host-engine.com
 * rpmforge: mirror.team-cymru.org
 * updates: centos.den.host-engine.com
236 packages excluded due to repository priority protections
No packages marked for update
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dictionary Widget didnt work hemanshurpatel Fedora 3 03-12-2010 04:50 PM
ati 9.2 still didnt work? konfigure Slackware 10 03-01-2009 04:55 AM
alsa conf didnt work? rixtr66 Slackware 16 08-20-2008 05:49 PM
automount didnt work PinRojas Debian 7 07-05-2005 12:29 PM
new compiled kernel 2.6.6 didnt work karfei00 Linux - General 4 06-09-2004 01:50 AM

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

All times are GMT -5. The time now is 07:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration