August 11, 2009
To install the dig command on CentOS, Fedora, or Redhat run the following:
yum install bind-utils
Tags:
centos,
centos5,
server-administration,
yum
No Comments
Filed under: Uncategorized by — aaron @ 8:22 pm
May 17, 2009
When I try and do a yum upgrade on an HyperVM openvz node, I’m getting the following error:
Total download size: 220 M
Is this ok [y/N]: y
Downloading Packages:
http://download.lxlabs.com/download/update/centos-5/x86_64/t emp/x86_64/php-5.2.6-5.x86_64.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://download.lxlabs.com/download/update/centos-5/x86_64/t emp/x86_64/php-cli-5.2.6-5.x86_64.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://download.lxlabs.com/download/update/centos-5/x86_64/t emp/x86_64/php-common-5.2.6-5.x86_64.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error Downloading Packages:
php – 5.2.6-5.x86_64: failure: temp/x86_64/php-5.2.6-5.x86_64.rpm from lxlabsupdate: [Errno 256] No more mirrors to try.
php-cli – 5.2.6-5.x86_64: failure: temp/x86_64/php-cli-5.2.6-5.x86_64.rpm from lxlabsupdate: [Errno 256] No more mirrors to try.
php-common – 5.2.6-5.x86_64: failure: temp/x86_64/php-common-5.2.6-5.x86_64.rpm from lxlabsupdate: [Errno 256] No more mirrors to try.
To fix this, you can run the following:
yum clean all
yum upgrade
Tags:
centos,
hypervm,
linux,
lxlabs,
yum
No Comments
Filed under: Uncategorized by — aaron @ 3:05 pm
November 10, 2008
On some new installs of CentOS we have been getting the following error while using yum:
[root@s yum]# yum upgrade
Error: None
To fix this phython sqlite and yum must be re-installed.
First remove phython sqlite and yum, then download and re-install them using the following:
rpm -ivh yum-metadata-parser-1.1.2-2.el5.x86_64.rpm
rpm -ivh python-sqlite-1.1.7-1.2.1.x86_64.rpm
rpm -ivh yum-3.2.8-9.el5.centos.1.noarch.rpm
rpm -ivh yum-updatesd-0.9-2.el5.noarch.rpm
Then execute:
yum clean all
yum upgrade
This should fix the issue.
If you are still having issues try the following:
rm /var/lib/rpm/__db*
rpm –rebuilddb
yum clean all
yum upgrade
Thanks Gopi for this article!
Tags:
centos,
linux,
server-administration,
yum
No Comments
Filed under: Uncategorized by — aaron @ 4:32 pm
April 2, 2008
Problem: If you are getting an error something like this when using yum:
Total download size: 549 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
error: install: %pre scriptlet failed (2), skipping screen-4.0.3-1.el5
Solution: Disable selinux
Tags:
server-administration,
xen,
yum
No Comments
Filed under: Uncategorized by — aaron @ 6:02 am
February 13, 2008
While attempting to install Subversion via yum today, I received the following error:
[root@sXXX ~]# yum install subversion
Loading “installonlyn” plugin
Setting up Install Process
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for subversion to pack into transaction set.
subversion-1.4.2-2.el5.i3 100% |=========================| 42 kB 00:00
—> Package subversion.i386 0:1.4.2-2.el5 set to be updated
–> Running transaction check
–> Processing Dependency: libaprutil-1.so.0 for package: subversion
–> Processing Dependency: perl(URI) >= 1.17 for package: subversion
–> Processing Dependency: libneon.so.25 for package: subversion
–> Processing Dependency: libapr-1.so.0 for package: subversion
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for apr-util to pack into transaction set.
apr-util-1.2.7-6.i386.rpm 100% |=========================| 7.3 kB 00:00
—> Package apr-util.i386 0:1.2.7-6 set to be updated
—> Downloading header for neon to pack into transaction set.
neon-0.25.5-5.1.i386.rpm 100% |=========================| 6.7 kB 00:00
—> Package neon.i386 0:0.25.5-5.1 set to be updated
—> Downloading header for apr to pack into transaction set.
apr-1.2.7-11.i386.rpm 100% |=========================| 10 kB 00:00
—> Package apr.i386 0:1.2.7-11 set to be updated
–> Running transaction check
–> Processing Dependency: libpq.so.4 for package: apr-util
–> Processing Dependency: perl(URI) >= 1.17 for package: subversion
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for postgresql-libs to pack into transaction set.
postgresql-libs-8.1.11-1. 100% |=========================| 16 kB 00:00
—> Package postgresql-libs.i386 0:8.1.11-1.el5_1.1 set to be updated
–> Running transaction check
–> Processing Dependency: perl(URI) >= 1.17 for package: subversion
–> Finished Dependency Resolution
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion
Steps to resolve this:
1. Download the perl(URI) with version greater than 1.17 using the following command.
wget http://fr.rpmfind.net/linux/fedora/core/3/x86_64/os/Fedora/RPMS/perl-URI-1.30-4.noarch.rpm
2. Install the specified package using the follwing command.
rpm -i perl-URI-1.30-4.noarch.rpm
3. Install subversion using “yum”.
yum install subversion
You should now have successfully installed Subversion:
[root@sXXX ~]# svn help
usage: svn [options] [args]
Subversion command-line client, version 1.4.2.
Type ‘svn help ‘ for help on a specific subcommand.
Type ‘svn –version’ to see the program version and RA modules
or ‘svn –version –quiet’ to see just the version number.
Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.
Available subcommands:
add
blame (praise, annotate, ann)
cat
checkout (co)
cleanup
commit (ci)
copy (cp)
delete (del, remove, rm)
diff (di)
export
help (?, h)
import
info
list (ls)
lock
log
merge
mkdir
move (mv, rename, ren)
propdel (pdel, pd)
propedit (pedit, pe)
propget (pget, pg)
proplist (plist, pl)
propset (pset, ps)
resolved
revert
status (stat, st)
switch (sw)
unlock
update (up)
Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/
Tags:
centos,
centos5,
subversion,
system administration,
yum
No Comments
Filed under: Uncategorized by — aaron @ 7:17 pm