New answers tagged

1

rpm -e epel-release You remove packages using their name (not file name). You are probably missing some files that this package reinstall. You can check with rpm -V epel-release But if your /etc/yum.repos.d/ is really empty then you are missing base repositories of CentOS too.


0

Easiest way for me to install mplayer on RHEL 7 was to put the fedora and rpmfusion for Fedora repositories in my repository directory /etc/yum.repos.d/. I just copied them from another machine, which had Fedora 21 installed and changed the $releasever variable to 20. Create the repository files The following commands will create the repository files for ...


0

Here's a specific example using "httpd" as the package to download and install. This process was tested on both CentOS6 and CentOS7. Install the stuff you need and make a place to put the downloaded RPMs: # yum install yum-plugin-downloadonly yum-utils createrepo # mkdir /var/tmp/httpd # mkdir /var/tmp/httpd-installroot Download the RPMs. This uses the ...


1

Thanks for the detailed explanation maxschlepzig, but your proposed fix isn't correct. It would result in comdir being set to /usr/share/bash-completion when bash-completion is installed. Files from there aren't loaded, they have to be in /usr/share/bash-completion/completions. That would break being able to consistently use %{compdir} as an install ...


1

If you want to move it from daily to monthly run, you need to use mv and not cp as otherwise you would simply add a monthly run. sudo mv /etc/cron.daily/0yum-cron /etc/cron.monthly/0yum-cron should do what you're asking for.


1

Seems you're asking for yumdownloader which is contained in the package yum-utils. There are already a few questions and answers about this, see e.g. Download all dependencies with yumdownloader, even if already installed? or How do I find package URLs with Yum? yumdownloader will download the packages, although it will not generate a file Install.sh as the ...


1

Various distros name their packages slightly differently and there is no automated way to map one to the other. You've probably quoted the best example already with Apache, which is apache2 on Debian/Ubuntu systems and httpd on CentOS/RedHat/Fedora systems, apache on Arch, apache2 on openSuse, www-servers/apache on Gentoo etc. The best way to find the ...


0

If SSH is enabled SCP should work as well. Depending on what you need to update you can download the newest CentOS release, SCP it to your server and configure YUM to use the repo in the new release. Then yum update with grab the packages from the new release. This is a simple way if you only need new CentOS packages, if you have other 3rd party software ...


1

Here's what I would do. So, you can SSH to the server (let's call it server, from your machine; let's call it workstation. Set up an HTTP Proxy like Squid on workstation, listening on localhost:8080. From workstation, open a reverse SSH tunnel to server: ssh -R 8080:localhost:8080 user@server Configure yum on server to use localhost:8080 as a proxy. yum ...


-1

If you can SSH into the server, that means your firewall ports you to the server. But I can't possible belive that you use a oneway-er. So if you can go into the server, you should be able to yum upgrade with ease. Try this: What is the output of: wget http://ipinfo.io/ip -qO - Or better question: What is the output of the yum upgrade?


0

Provides: tags have nothing to do with the ea-apache24-2.4.18-1.1.x86_64 conflicts webserver problem. The package ea-apache24 has a Conflicts: webserver tag which causes this. Which I think is not really clever, as by default nearly all webservers can be installed in parallel. And not sure why you installed apache from some external repo when you can have ...


0

In your situation, I'd build nginx from source. This has the advantage that you can enable only the features you'll need to run as a proxy. There are disadvantages. Keeping up with security issues becomes your responsibility, so you'll have to keep track of nginx errata. Also, you'll have to hand-roll init/systemd start scripts (although you can rip ...


0

It is absolutely not possible to override that. As a note, never attempt --skip-broken. The problem is both ea-apache24 and nginx both "provide" the same thing. Because of this, nginx refuses to install. There is no way around this without doing an rpm --force. But there is a good chance that will also fail. Doing this will create an rpmdb hell. I would ...


0

Clear yum cache, yum clean all, followed by yum makecache to refresh it. If this doesn't help, get a new CentOS repository definition file from the official website. Given you are using version 6, it has been a while since you installed it, and the repository definitions in /etc/yum.repos.d might be pointing to the wrong location to obtain the mirror list.


1

Simply: yum downgrade httpd-<version-number> The version must be available already in the repository, which you can verify with: yum list --showduplicates httpd You might then encounter dependency problems: an older version of httpd depends on an older package that has been obsoleted. In that case, you must remove the depending packages. If the ...


1

Why do you want that exact version, and not the CentOS version based on 2.2.15 (presumably with backports for bugfixes up to 2.2.(last) and then some)? CentOS is basically recompiled RHEL sources, and as an enterprisey distribution they stay with the base version from the original release of the distribution (itself carefully selected), backporting relevant ...


0

Apparently there is a space in the value of $ginstdesk, so it needs to be quoted.


1

The reason why you're seeing that error is because the person who maintains the package incorrectly included /usr/share/man and /usr/share/man/man1 in the RPM package's definition of what the package "owns". Because the package claims to own that directory (and will try to delete it if you uninstall it), yum detects that another, already installed package, ...


1

Try installing the previous version: rpm -ivh http://binaries.html-tidy.org/binaries/tidy-5.1.14/tidy-5.1.14-64bit.rpm


2

This update is for installing repository keys, hence asking for confirmation as installing wrong keys has security implications. The error message is because the default is not installing as the capital N shows. As you have pressed ENTER, it displayed the error. Please run yum update again and press Y when presented with this message.


0

You can install erlang using erlang-solution repo Install repo wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm rpm -Uvh erlang-solutions-1.0-1.noarch.rpm Install erlang sudo yum install erlang


0

MariaDB is a fork of MySQL. RedHat Enterprise Linux and its derivatives have shifted to MariaDB from MySQL. So you can install mariadb-server on CentOS7 using this command yum install mariadb-server mariadb. Here is a good step by step tutorial how you can do this in p.8 Install MariaDB Database or you can use this source for that Mariadb step by step


1

Use the --excludepath= option, for instance if you have this kind of error: $ sudo rpm -i chromium-27.0.1453.110-202711.x86_64.rpm error: unpacking of archive failed on file /usr/share/applications/chromium-devel.desktop;569df493: cpio: open failed - Permission denied you can use the option like this: $ sudo rpm -i ...


0

If you're binding to the loopback interface anyways, you can simply use: file://path/to/repo Source: https://www.centos.org/docs/5/html/5.2/Deployment_Guide/s1-yum-yumconf-repository.html


0

I just ran into this issue when using cp -R . /var/ftp/pub/osdirectory and instead used (in mounted iso/DVD): find . | cpio -pmd /var/ftp/pub/osdirectory to copy the files over correctly


0

Try cleaning yum: yum clean all Hope you have done this: Create a new file /etc/yum.repos.d/mysql-community.repo with the desired version. For 5.7, add the lines below: [mysql57-community] name=MySQL 5.7 Community Server baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/ enabled=1 gpgcheck=1 ...


0

The problem is that yum gives you the wrong error because of one bug. To solve it and see the real error, you need to apply this fix I found here. There is a bug in python-urlgrabber that is used by yum that results in the wrong error being generated. It was noticed during the el7 beta and reported but it appears not to have been fixed. The problem ...


0

That is because those are separate repositories and separate metadata. You can try to clean up all metadata via yum clean all --enablerepo="*" and then try again. But if the error with the mirror persists you would need to use a different mirror or contact the mirror owner so he can take a look. Seems the last sync was only partial or not successful.


-1

The possible places I have found so far are: ~/.bashrc /etc/bashrc /etc/environment /etc/yum.conf /etc/sysconfig/network-scripts/ifcfg-eth0..n After checking and fixing those and doing a reboot, yum now works as expected.



Top 50 recent answers are included