LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   create epel repo (https://www.linuxquestions.org/questions/linux-newbie-8/create-epel-repo-4175492593/)

Yarok 01-26-2014 03:18 AM

create epel repo
 
Hello,

I'm running redhat 6 on a VM workstation.
I'm trying to create epel repo:

#yum install https://dl.fedoraproject.org/pub/epe...6-8.noarch.rpm

The following message has received:

Examining /var/tmp/yum-root-m0v0x2/epel-release-6-8.noarch.rpm: does not update install package.
Error: Nothing to do.

I also tried:
# wget http://epel.mirror.net.in/epel/6/i38...6-8.noarch.rpm
# rpm -Uvh epel-release-6-8.noarch.rpm

The following message displayed:
epel-release-6-8.noarch.rpm already installed.

But I can't install things such as:
yum install phpmyadmin.

Thanks,
Yarok

lqmp 01-26-2014 04:07 AM

It states that epel is already installed.

Can you please post the output of the following commands?
Code:

ls -la /etc/yum.repos.d/
cat /etc/yum.conf
cat /etc/yum.repos.d/epel*


Yarok 01-26-2014 05:17 AM

I had the epel installed but I delete it from the /etc/yum.repo.d/ directory.
Now I have only the local repo I have created.

colucix 01-26-2014 05:46 AM

If you removed the epel.repo file manually, the RPM database has not been updated and it believes the package is still installed. Try to remove it and then reinstall:
Code:

yum remove epel-release
yum localinstall epel-release-6-8.noarch.rpm


Yarok 01-26-2014 06:44 AM

Well, you right!
I delete the DB as well and re installed the epel repo as you instructed.

Now I try to install phpmyadmin and it gives the following message:

Error: Pachage: phpMyAdmin-3.5.8.2-1.el6.noarch (epel)

requires" php-mysql >= 5.2.0
requires" php-mbsring >= 5.2.0
You could ty using --skip-broken
You could try running: rpm -Va --nofiles --nodigest

lqmp 01-26-2014 06:46 AM

Install it with yum to install it's dependencies:
Code:

yum install phpmyadmin
If that fails, there are possibly some excludes in your yum.conf.

Yarok 01-26-2014 09:24 AM

yum install phpmyadmin gives the above:

Error: Pachage: phpMyAdmin-3.5.8.2-1.el6.noarch (epel)

requires" php-mysql >= 5.2.0
requires" php-mbsring >= 5.2.0
You could ty using --skip-broken
You could try running: rpm -Va --nofiles --nodigest

Please see /etc/yum.conf:

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

lqmp 01-26-2014 11:10 AM

Can you please post the output of the following commands?
Code:

ls -la /etc/yum.repos.d/
cat /etc/yum.repos.d/*


chrism01 01-27-2014 12:26 AM

You may also find this useful https://code.google.com/p/iredmail/w...Yum_Repository


All times are GMT -5. The time now is 05:42 AM.