How to install MariaDB rpms in CentOS 6.4 using rpm (not yum cmd) + handling mysql-libs conflicts
Solution 1
Instead of " rpm -ivh ..." you should have done "rpm -Uvh ...".
Except for perhaps kernel, -Uvh should ALWAYS be used.
The Obsoletes: tags are not performed when using --install,-i.
Solution 2
You don't. You use yum
so that it handles this situation cleanly. It operates perfectly well offline using RPM packages directly, provided that all the necessary dependencies are available or already installed.
Download the appropriate MariaDB RPMs to your USB stick or DVD-ROM.
yumdownloader MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared
Take your USB stick or DVD-ROM to the target machine and copy them in.
Install them:
yum --disablerepo=* -y install MariaDB-*.rpm
Related videos on Youtube
charlie
Updated on September 18, 2022Comments
-
charlie over 1 year
I am trying to perform a wrap around of the ASCII alphabet characters in order to perform a shift from a key. For example, if the key is 2 then shift the letter
A
to becomeC
. But, how do I wrap aroundZ
in order to get toB
using modulus arithmetic?I am trying to implement the following formula:
ci = (pi + key) % 26;
Where
ci
is thei
th ciphered letter andpi
is thei
th letter to be ciphered. -
Michael Hampton over 10 yearsI don't understand how this helps with doing an offline installation?
-
GioMac over 10 yearsadded to the end :) Guy knows how to download and put files to the server.
-
Danila Ladner over 10 yearslocalinstall goes into the internets to check for dependencies.
-
GioMac over 10 yearshahah, yum localinstall -y MariaDB-*.rpm
-
Michael Hampton over 10 years@GioMac On EL6 they can be used interchangeably. There was only a difference on EL5.
-
Danila Ladner over 10 yearsunless you configure local repo on the box and enable only that repo.
-
GioMac over 10 yearsYes, I see, actually never used it (I'm fine with rpm), still not satisfied with how yum works, RHEL5 yum is a headache. RHEL7 will be fine.
-
Michael Hampton over 10 years@GioMac RHEL7 will also include MariaDB by default :)
-
GioMac over 10 yearsThat's what happens with the product when maintainer fails to communicate with OSS community :) developers.slashdot.org/story/13/09/09/2259206/…
-
chux - Reinstate Monica over 5 yearsNote: Unexpected results with
test_shift < 0
. Also off-by-1 withletter <= ASCII_CAP_LETTER_OFFS + NUM_OF_LETTERS
which should beletter < ASCII_CAP_LETTER_OFFS + NUM_OF_LETTERS
.<=
--><
in 2 places. -
Toto over 5 yearsThanks for that hint @chux. I've made some corrections. A negative
shift
is now possible ( by addingNUM_OF_LETTERS
which makes it a shift in positive direction) -
chux - Reinstate Monica over 5 yearsGood improvement. Also for your design review, why
short
inshort shift
vsint
? Usuallyshort
makes sense for arrays to reduced size.int
is the usual workhorse type.