Issues related to applications and software problems
-
grittt
- Posts: 10
- Joined: 2018/01/27 16:37:46
Post
by grittt » 2018/04/09 16:24:37
I want to install VLC, but yum is unable to locate the package - see the Terminal output below.
How can i find out which repository contains the VLC package?
-
TrevorH
- Site Admin
- Posts: 33221
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Post
by TrevorH » 2018/04/09 16:27:53
You'll need to add a repo that supplies vlc if you want to install it. I know of 2: nux-dextop and possibly rpmfusion. I use the first. You can find more info in the wiki. Additional packages are often in 3rd party repos. Information on additional CentOS repos is available at
http://wiki.centos.org/AdditionalResources/Repositories Pay attention to the reference on yum-priorities.
-
hunter86_bg
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
-
Contact:
Post
by hunter86_bg » 2018/04/10 03:58:04
Searching can be done via '/' and '?'.
-
TrevorH
- Site Admin
- Posts: 33221
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Post
by TrevorH » 2018/04/10 08:40:07
You ran sudo yum which makes yum run as root but your && rpm is not sudo'ed so runs as you and has no permission...
-
grittt
- Posts: 10
- Joined: 2018/01/27 16:37:46
Post
by grittt » 2018/04/10 17:17:25
hunter86_bg wrote:
Searching can be done via '/' and '?'.
Thanks, that helps.
TrevorH wrote:
You ran sudo yum which makes yuum run as root but your && rpm is not sudo'ed so runs as you and has no permission...
But if I don't run it as sudo, this happens:
I'm not sure what this means: "your && rpm is not sudo'ed". Sorry, I'm still new to CentOS.
-
TrevorH
- Site Admin
- Posts: 33221
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Post
by TrevorH » 2018/04/10 17:21:12
You ran two commands like
sudo yum .... && rpm ...
and what you should have run was
sudo yum ... && sudo rpm ...
The && is a command separator and thus sudo applies to the first command (yum) but not to the 2nd (rpm).
-
grittt
- Posts: 10
- Joined: 2018/01/27 16:37:46
Post
by grittt » 2018/04/10 17:47:24
TrevorH wrote:You ran two commands like
sudo yum .... && rpm ...
and what you should have run was
sudo yum ... && sudo rpm ...
The && is a command separator and thus sudo applies to the first command (yum) but not to the 2nd (rpm).
I didn't understand the &&. Now I see that the epel-release is already installed on my system, so I've run the second command by itself, sudo rpm....... and the repo has installed ok. Cheers.
-
TrevorH
- Site Admin
- Posts: 33221
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Post
by TrevorH » 2018/04/10 17:50:50
They're two separate commands separated by && which is a bash command shell thing which says run this if the return code from the 1st says it worked. However, sudo ran the first one and the second one was run without sudo so didn't work.
-
hunter86_bg
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
-
Contact:
Post
by hunter86_bg » 2018/04/10 19:14:57
Try the following :
Code: Select all
sudo yum -y install epel-release && sudo yum install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm