Hot answers tagged

72

These tools all install software into your system, but are working on different levels. ./configure && make install Running ./configure && make install builds and installs the libraries or executables directly from the source code. The make install step basically just copies the final files into your system. Many sources come with a ...


57

yum doesn't have that capability. Use the repoquery tool from the yum-utils package instead. repoquery --requires <package> OR to also see which additional RPM packages are needed to satisfy the dependencies, use --resolve repoquery --requires --resolve <package>


49

Tru Huynh of centos.org has built the redhat developer toolset 1.1, for centos and it contains gcc 4.7.2 So you could simply use his repo and install just gcc, instantly. cd /etc/yum.repos.d wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc devtoolset-1.1-gcc-c++ This will ...


26

Here is how to get devtoolset-2 (including gcc 4.8.1) This was taken from http://people.centos.org/tru/devtools-2/readme wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ Known issues: unsigned packages CentOS-6 devtoolset-2 needs ...


25

There is new version of devtoolset 2.0. Nice people from Cern working on Scientific Linux created an open version: If you use CentOS (not Scientific Linux), then you will have to import their GPG key from here using: rpm --import http://www.scientificlinux.org/documentation/gpg/RPM-GPG-KEY-cern Enjoy!


21

use deplist command, yum deplist <package> from yum's manual: Produces a list of all dependencies and what packages provide those dependencies for the given packages. Update for dnf To do the same thing with dnf, we can do dnf repoquery --requires <package> as man yum2dnf said: Alternative to Yum deplist command to find out ...


19

You can use: yum downgrade NetworkManager NetworkManager-gnome NetworkManager-glib


18

cd my-dir; rpm2cpio to-install.rpm | cpio -idv See How To Extract an RPM Package Without Installing It (rpm extract command).


16

The rpm cache directory location can be found in /etc/yum.conf cachedir=/var/cache/yum/$basearch/$releasever You should change the $basearch and $releasever, values based on your red hat release version. If you want to keep the rpm cache after installation the keep cache value should be set 1 in: /etc/yum.conf set keepcache=1


16

# 1. Install a package with repository for your system: # RHEL 6: `yum-config-manager --enable rhel-server-rhscl-6-rpmss` # RHEL 7: `yum-config-manager --enable rhel-server-rhscl-7-rpms` $ sudo yum install centos-release-scl # On CentOS 6/7+, install package centos-release-scl available in CentOS repository # 2. Install the collection: $ sudo yum install ...


14

You can run "yum clean expire-cache" which is much more efficient way to tell yum to check the repos. ... the other thing to do would be to change the metadata_expire value for the local repo. (see man yum.conf).


12

This is the more simple way, when you get this error: package jdk.... (which is newer than jdk...) is already installed Use the --force flag to install multiple versions. So for example: sudo rpm -ivh --force jdk-6u35-linux-amd64.rpm


11

I actually solved this independently, by looking at other RPM specs that did similar things. If you just want to add a user (conditionally), use Ignacio's link. I did this: Requires(pre): /usr/sbin/useradd, /usr/bin/getent Requires(postun): /usr/sbin/userdel %pre /usr/bin/getent group myservice || /usr/sbin/groupadd -r myservice /usr/bin/getent passwd ...


11

RPM's are used in RHEL for installing the softwares and packages . The rpm -ivh command is for RHEL based Linux. If you want to install an RPM file in Ubuntu (or any debian based file system) you need to install Alien to convert RPM into debian and then install the package. Alien is a program that converts between the rpm, dpkg, stampede slp, and slackware ...


10

Will I experience the benefits of 7200 rpm over 5400 or will SATA2 limit the speeds below the capabilities of the drive? The SATA-II (3.0 Gbit/sec) interface tops out around 270MB per second. Top speed for current average consumer harddrives is about half that. Top speed of 15000 RPM SAS enterprise drives is nearly 200 MB/sec. Still way below SATA-II ...


10

Use yum instead. yum localinstall ... For example: yum localinstall http://pkgs.repoforge.org/subversion/subversion-devel-1.7.1-0.1.el6.rfx.i686.rpm The example above will install the rpm and its dependencies automatically.


9

Yes, CentOS is for all intents and purposes an exact copy of RHEL.


9

What is needed is rpmrebuild, which I found via the Red Hat Magazine article. If you have an rpm for which you only wish to modify the spec file, do the following: copy the rpm in question to a working directory run rpmrebuild -e -p <pkg>rpm   (this will open your default editor (typically vi|vim if you haven't made any changes on your rpm-...


9

You refer to the package by the name "php_pdo", but Puppet sees the package as "php-pdo" (dash, not underscore). Every time it checks to see of php_pdo is installed, it finds out that it is not. Unfortunately it doesn't matter how many times you install php-pdo, it will never be php_pdo. To resolve the issue, change the line: package {"php_pdo": to be: ...


9

The yum command "whatprovides" accepts wildcards. If you're searching for the package that provides as certain file or executable and do not know its full path, use "yum whatprovides */filename". $ yum whatprovides */ls coreutils-5.97-23.el5_4.2.x86_64 : The GNU core utilities: a set of tools : commonly used in shell ...


9

Based on my first-hand experience developing firmware for disk controllers, here's an answer from a different perspective. You question seems to based on a misconception that, somehow, R/W_head-to-platter transfer rates affect the drive-to-host transfer rate. The reality is that these two I/O transfers are separate operations, and do not interact on any ...


8

rpm -ql package should give you a list of all files installed for a given package.


8

Well, yes, sort of: --relocate OLDPATH=NEWPATH For relocatable binary packages, translate all file paths that start with OLDPATH in the package relocation hint(s) to NEWPATH. (man rpm). However, the software may have its usual install location hardcoded in various places. If an RPM was not meant to be relocated like this (note the "For ...


8

Alternative: zypper search -i -r <repo alias|#|URI>


8

You can easily list that using: zypper pa -ir <repo_name_or_number>


8

Take a look under /var/cache/yum directory. They should be there unless you have some kind of autocleanup going on. If you do, try this command: find /var/cache/yum -iname '*.rpm' – If there's nothing there, see the cachedir variable in /etc/yum.conf and check out what's the current directory for storing packages. It can also be that tmpwatch or some ...


8

If you have a local RPM, you can get a list of dependencies via: rpm -qpR mediawiki-1.4rc1-4.i586.rpm


7

Found some reasons from a forum post; and another: Seem like good enough reasons!


6

Apple Menu -> About This Mac -> More Info -> Hardware -> Serial-ATA Depending on what type of hard drive you have, the RPMs may be listed as Rotational Rate. Not all drives report this however. If not, as that's the case, as jtb points out, you'll have to do a Google search on your hard drive model. In my limited testing, Seagate and Hitachi drives seem to ...


6

If you want to save a copy of the package as currently installed before upgrading or removing it, use rpm --repackage -- it'll save the RPMs in /var/tmp or /var/spool/repackage or elsewhere, depending on your configuration. Otherwise, there exists rpmrebuild, which does exactly what you ask for. Word of caution: with neither of these tools do you obtain ...



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