Page 1 of 1

baseurl command not found

Posted: 2014/07/14 08:50:55
by fares
i try to install mariadb

and add Add repository of mariadb

Code: Select all

# MariaDB 10.0 CentOS repository list - created 2014-03-12 12:47 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
this cause error

Code: Select all

[4max@localhost ~]$ # MariaDB 10.0 CentOS repository list - created 2014-07-14 08:42 UTC
[4max@localhost ~]$ # http://mariadb.org/mariadb/repositories/
[4max@localhost ~]$ [mariadb]
bash: [mariadb]: command not found...
[4max@localhost ~]$ name = MariaDB
bash: name: command not found...
[4max@localhost ~]$ baseurl = http://yum.mariadb.org/10.0/centos6-amd64
bash: baseurl: command not found...
[4max@localhost ~]$ gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
[4max@localhost ~]$ gpgcheck=1

Re: baseurl command not found

Posted: 2014/07/14 09:09:04
by stevemowbray
You are supposed to copy and paste that text into a repo file in /etc/yum.repos.d, not run it as commands.

However, that repository is for CentOS 6, not 7, so you shouldn't be trying to use it at all.

Re: baseurl command not found

Posted: 2014/07/14 09:21:15
by fares
stevemowbray wrote:You are supposed to copy and paste that text into a repo file in /etc/yum.repos.d, not run it as commands.

However, that repository is for CentOS 6, not 7, so you shouldn't be trying to use it at all.
thank you there is no repository for centos 7 now

Re: baseurl command not found

Posted: 2014/07/14 10:20:47
by avij
To install mariadb on CentOS 7, try yum install mariadb. It will work out of the box without any additional repository configurations.