Tag Info

Hot answers tagged

34

With yum-utils installed, repoquery will provide the information you seek (here 'epel' being the repository). └─[$]> repoquery -i cherokee Name : cherokee Version : 0.99.49 Release : 1.el5 Architecture: i386 Size : 8495964 Packager : Fedora Project Group : Applications/Internet URL : ...


34

Use the EPEL (Extra Packages for Enterprise Linux) repository. The easiest way to enable it is by installing the epel-release package. Here's how if you have RHEL 5 x86_64: [root@localhost]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm [root@localhost]# yum install git


28

On my CentOS 6.2, this worked: sudo yum install httpd-tools


23

I just had to install this on my CentOS 6 server since psycopg2 required pg_config. Boo yah: yum install postgresql-devel Update If you still encounter issues with pg_config, you may need to add it to your PATH, e.g.: export PATH=$PATH:/usr/pgsql-x.x/bin where x.x is your version, such as /usr/pgsql-9.2./bin.


21

Whats with the syntax of something followed by parentheses? From http://jfearn.fedorapeople.org/en-US/RPM/0.1/html/RPM_Guide/ch-advanced-packaging.html: Scripting languages such as Perl and Tcl allow for add-on modules. Your package may require some of these add-on modules. RPM uses a special syntax with parenthesis to indicate script ...


20

Yum supports plugins, so it's entirely possible to write a plugin that reads the cached puppet manifest and warns when a transaction will overwrite a puppet-controlled file. I'm not aware of an existing plugin that does this, but I will probably write just wrote one myself as I like the idea. The plugin checks all newly installed/upgraded/downgraded ...


19

Actually I found it, it's /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/. I found out what it was by doing update-alternatives --display java and it showed me the directory /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java


18

Generally speaking speaking security updates are considered to be somewhat safe, particularly for a distribution with goals like RedHat. Their core focus is creating an operating environment that is consistent. As such the maintainers tend to pick versions of packages and stick with them for the long haul. To see what I mean look at the versions of such ...


17

You can use: yum -y install packagename The "-y" implies "yes".


17

From yum -h: --nogpgcheck disable gpg signature checking


16

Pick a mirror from the list of CentOS 6 mirrors and install the packages you need using rpm. You would need to deal with dependencies. Lucky for you, I have a pretty bare VM with CentOS 6 x86_64 installed. I snapshot the VM, ran yum remove python and had some fun getting through some circular dependencies. Final result: # --nodeps: because of circular ...


16

Install apr-util(need to run ab): yum install apr-util Install yum-utils: yum install yum-utils Download httpd an extract ab: mkdir ~/httpd cd ~/httpd yumdownloader httpd rpm2cpio httpd-2.2.3-43.el5.centos.3.i386.rpm | cpio -idmv mv usr/bin/ab /usr/bin/ab cd ~ rm -rf ~/httpd Run ab: ab http://google.ru/ This is ApacheBench, Version 2.0.40-dev ...


15

What version of yum? On the current version if the installed package is the same version as the most recent one available then the repo it was installed from is shown. $ yum info irssi Installed Packages Name : irssi Arch : i586 Version : 0.8.14 Release : 1.fc11 Size : 2.3 M Repo : installed From repo : updates Summary : ...


15

I followed the instructions from Install Apache/PHP 5.4.10 on Fedora 17/16, CentOS/RHEL 6.3/5.8 with a slight modification. It took maybe 10min. My exact commands are shown below. Note that the first command had to be changed from what is shown in the article. The change was from epel-release-6-7.noarch.rpm to epel-release-6-8.noarch.rpm. How to add a repo ...


15

There are at least two reasons for rebooting: You probably want to use the advantages of the newer version (security fixes) Usually during a kernel update the module tree of the old kernel is removed. Thus if you (or some script) unload a module then the system cannot load it again because it finds only the newer one on disk (if at all) and this is ...


14

You can discover which package contains the program you want using yum provides: yum provides /usr/bin/ab Then you will see that ab is in the httpd-tools package. And now you can install it: yum install httpd-tools


14

In order to run 2.2.x you would either need to source another RPM - or build it from source. I would suspect however since you are running 2.2.3 that you are running RedHat Enterprise Linux 5 or one of its derivatives (CentOS 5 etc). You will find that a sizeable number of penetration testing companies or security officers don't take into account that ...


14

Some packages are held by more than one repository. The priorities plugin choose packages from the highest-priority repository, excluding duplicate entries from other repos.


13

From what I understand, this error is generated from the priorities plugin as noted by Pawel. In 2009, the maintainer of yum mentioned that he hoped people would not use priorities. To disable the priorities plugin, edit /etc/yum/pluginconf.d/priorities.conf and set enabled = 0. After this change, next time you run yum update, you should not get any ...


13

You could just build from the sources. The following worked for me (although you may not want to do the update or install every package in "Development tools" and "Additional Development"): sudo yum update sudo yum groupinstall "Development tools" sudo yum groupinstall "Additional Development" wget ...


13

Your general update strategy is sound: You have a local repo (which I assume you test in a dev environment), and you update everything based of that (I assume known good) repo. The service restart thing is inevitable: If the underlying code has changed you need to restart the service for that change to take effect. Failing to do so can lead to worse ...


13

You are using the EPEL 5 version of the repo instead of 6, go into your /etc/yum.repos.d/epel.repo file and change: mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch to mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch Then run yum clean all and then try and install munin again. ...


12

The package is called postgresql-libs on Red Hat and derived distributions.


12

Don't do it. ReiserFS is not regarded as a good filesystem option these days and may not be under active development. You have several other solid filesystem options here in 2012. Are you trying to solve a particular problem? If so, XFS, btrfs, maybe even tuning of your ext4, may be better ideas for supportability and compatibility. Oh yeah, and there's ...


11

Push back... Red Hat Enterprise Linux doesn't work that way. Installing from source to meet audit requirements opens you to additional security issues and more management overhead. The approach Red Hat takes for its enterprise operating systems is to create a consistent target throughout the support lifecycle of the OS. Larger corporations and enterprise ...


11

You really have two options at this point: Attempt to Repair Restore from Backups/Rebuild Repairing can be a very tricky thing to do. You will first need to pull down the rpms for yum and install them manually, assuming rpm will still work. From there look through your yum log and figure out what all packages to reinstall. It could be very labor ...


11

I'm not quite sure but if you install the normal RPMS the JAVA_HOME value can also be set to this: /usr/java/default/ EDIT: I just checked on my home system. I have created this file: /etc/profile.d/java.sh That contains: export JAVA_HOME=/usr/java/default/ and I'm using the official version from Sun: jdk-1.6.0_12-fcs EDIT: Here is how I set up ...


11

There are two cases: If a file was installed as part of a rpm, it is a config file (i.e. marked with the %config tag), you've edited the file afterwards and you now update the rpm then the new config file (from the newer rpm) will replace your old config file (i.e. become the active file). The latter will be renamed with the .rpmsave suffix. If a file was ...


10

You are seeing an rpmforge dependency problem, not a CentOS dependency problem. rpmforge perl modules are mass rebuilt at the moment. See http://lists.rpmforge.net/pipermail/users/2009-July/002508.html ff.


10

Do not update the package called redhat-release-5Server- $ rpm -qf /etc/redhat-release redhat-release-5Server-5.3.0.3 Make sure to pin that package. If you do edit /etc/yum.conf and put this in it [main] exclude=redhat-release-5Server-* yum would refrain from updating that package and that would keep /etc/redhat-release at its current version. Not ...



Only top voted, non community-wiki answers of a minimum length are eligible