Tag Info

Hot answers tagged

40

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


23

Have you tried: yum install gcc-c++


21

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


19

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>


18

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


17

You can place files in /etc/apt/sources.list.d. This is described in the man page for sources.list (type man sources.list). The man page says: SOURCES.LIST.D The /etc/apt/sources.list.d directory provides a way to add sources.list entries in separate files. The format is the same as for the regular sources.list file. File names need to end with ...


15

I believe you can find what you are looking for in the Yum log files, located in /var/log/yum.log


14

From the manpage: MISC Specifying package names A package can be referred to for install,update,list,remove etc with any of the following: name name.arch name-ver name-ver-rel name-ver-rel.arch name-epoch:ver-rel.arch epoch:name-ver-rel.arch For ...


13

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!


13

yum repolist yum repolist enabled shows all enabled repositories. These two commands are identical. yum repolist disabled shows disabled repositories. yum repolist all shows everything.


12

You may have a DNS issue. Try to ensure you can resolve DNS records locally: nslookup google.com If you get an IP back from that command, you should be OK for DNS. Try then removing the fastestmirror cache and re-running your yum command: rm -f /var/cache/yum/timedhosts.txt


11

All of this did not work with me. Using CentOS and yum. yum hangs without an error message, at least, so it appears. Pressing Ctrl+C does not work (pressing it again and again and again does). Several things need to be checked: - are the repositories OK? - is networking OK? - are the yum and rpm databases OK? So, first start with the easy stuff - clean ...


9

Trying to recover the system will probably take you several hours. I recommend just reinstalling.


8

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


8

In CentOS, this binary is provided by the mailx package: yum install mailx FYI, as the message at the bottom of your post indicates, you are using whatprovides incorrectly. Proper usage searching mirrors for a file called 'mail' would have been: yum whatprovides */mail


8

Presto makes yum download only the delta. The changes. It downloads them and apply them on the existing data, thus it saves a lot of bandwidth. (You pay with Disk IO and CPU load instead.) It is a really good thing for developing countries, people with mobile internet and so on. ps.: OpenSUSE been using this for a long time. If I remember clearly they ...


8

dmckee's answer works perfectly well. $ yum list installed also works. No special privileges required.


7

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.


7

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


6

According to man yum: update: If run without any packages, update will update every currently installed package. If one or more packages or package globs are specified, Yum will only update the listed packages. While updating packages, yum will ensure that all dependencies are satisfied. […] If […] the --obsoletes flag is present yum ...


6

You can just use the rpm tool for this. rpm -ql package-name Will list all files installed by that package (that's que-ell).


6

Long ago I would have just used $ rpm -qa and possibly piped it through more. Looks like is still works.


6

For the specific commands you listed (in order).... yum search yum upgrade yum yum list installed yum list updates or yum check-update For any others, I would recommend reading the man page. It is very well written, and contains a lot more information. The biggest differences you will probably notice are: Installs will happen much faster since the ...


6

You can certainly make this switch. Basically you, more or less, point your installation to CentOS repositories and continue on your merry way. You'll have one major problem, though, in that all the CentOS repos seem to have their 5.x packages at release 5.9. There appears, at a quick glance, to be no 5.5 specific repos any longer. I did this on a web farm ...


5

Try to update the package audit first. yum update audit


5

Maybe this question can help you. Use the remi repository, you can't get it from CentOS base. How to add remi repo


5

That is PackageKit attempting to update the yum database so that it can show you a desktop icon when there are updates to apply. It should only run for short periods - if it is failing to complete then it suggests there is some sort of problem with your yum configuration such that it is hanging trying to update the status of one of the repositories or ...


5

Passing -C to yum will tell it to only use the metadata in the current cache. Note that this will cause the operation to fail if it needs metadata that is not currently in the cache, or if the metadata from the various repositories are not in sync.


5

This is the path of yum repository [root@localhost yum.repos.d]# pwd /etc/yum.repos.d This is the content of that directory [root@localhost yum.repos.d]# ll total 60 -rw-r--r-- 1 root root 179 Jul 17 11:56 adobe-linux-i386.repo -rw-r--r-- 1 root root 1926 Jun 26 14:59 CentOS-Base.repo -rw-r--r-- 1 root root 637 Jun 26 14:59 ...



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