baseurl command not found

General support questions
Post Reply
fares
Posts: 14
Joined: 2014/07/12 05:17:53

baseurl command not found

Post by fares » 2014/07/14 08:50:55

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

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: baseurl command not found

Post by stevemowbray » 2014/07/14 09:09:04

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.

fares
Posts: 14
Joined: 2014/07/12 05:17:53

Re: baseurl command not found

Post by fares » 2014/07/14 09:21:15

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

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: baseurl command not found

Post by avij » 2014/07/14 10:20:47

To install mariadb on CentOS 7, try yum install mariadb. It will work out of the box without any additional repository configurations.

Post Reply