Tag Info

Hot answers tagged

46

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 ...


27

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 ...


25

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>


19

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


17

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!


11

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).


11

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.


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 ...


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 ...


9

EL6 gcc-4.8 http://www.hop5.in/yum/el6/repoview/gcc.html or this http://puias.princeton.edu/data/puias/DevToolset/6/x86_64/ /etc/yum.repos.d/DevToolset.repo [DevToolset-2] name=RedHat DevToolset v2 $releasever - $basearch baseurl=http://puias.princeton.edu/data/puias/DevToolset/$releasever/$basearch/ enabled=1 gpgcheck=0 Testing run # yum install ...


9

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


9

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


9

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


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

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.


7

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


7

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


7

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: ...


6

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 ...


6

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


5

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 ...


5

Pass -f when querying the rpmdb to specify a file to look for. rpm -qf /path/to/executable rpm -qf $(which executable) If the file is not installed then ask yum. yum whatprovides '*bin/executable'


5

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 ...


5

I believe what you are looking for is /var/cache/yum/<repo>/packages. This directory is expunged during package cleanup. You can search for a file by name with the find command. An example: find / -name 'package.rpm' Wildcards are supported. find -name 'package*.rpm'


5

Check the Deleting packages with yum section in the HOW TO There says: In any event, the command syntax for package removal is: # yum remove package1 [package2 package3...] As noted above, it removes package1 and all packages in the dependency tree that depend on package1, possibly irreversibly as far as configuration data is concerned. As a quick ...


5

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 ...


4

$ rpm -q --whatrequires python


4

That's the correct way. It's the responsibility of the persons releasing the .tar.gz to have the proper rpm spec file, if it's meant to be built as an rpm. And that's how you build the rpm from the spec file. The rpm files you generate that way can be installed on all matching servers, provided you have not deliberately done things that prevent them from ...


4

Well, the .src.rpm contains the source code and information about where the various files and executables should be copied to (installed). So, yes, you should be able to compile the source both on Fedora and AIX. That does not, however, mean that you could also "install the rpm". Installing consists of copying files to various system folders such as /usr, ...


4

Yes, it's possible. For example, Debian includes yum and rpm in its standard repositories. Also, many programming languages have their own package management tools, used only for installing modules for that particular language – for example, I have Perl cpanm, Ruby gem, Haskell cabal and Python pip in addition to the system-wide package manager. ...



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