Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create "latest" symlink in ProxySQL YUM repo to point to the latest CentOS release #1694

Closed
mcrauwel opened this issue Sep 16, 2018 · 5 comments
Assignees

Comments

@mcrauwel
Copy link
Contributor

To be able to fully support default Amazon Linux AMI's the yum repo would need to support the $releasever = latest value. This is the default in all Amazon Linux AMI's

See https://aws.amazon.com/amazon-linux-ami/faqs/#lock

Package updates are always pushed into the repositories and are available to any versions of the Amazon Linux AMI where yum is configured to point to "latest". You can see which repositories your instance is pointing to by looking at the "releasever" variable in /etc/yum.conf – by default, the Amazon Linux AMI has releasever=latest set.
@ohsono
Copy link

ohsono commented Jan 18, 2019

I can reproduce this issue. I have the same version of Amazon AMI image. Please add it on the latest folder as well.

@ohsono
Copy link

ohsono commented Jan 29, 2019

I found a workaround. "repo.proxysql" doesn't have the /latest/ folder. But the percona repo does have it. http://repo.percona.com/release/latest/RPMS/x86_64/

to disable proxysql repo

##If you already have proxysql.repo and enabled=1, change to enabled=0
$ more /etc/yum.repos.d/proxysql.repo | grep enabled
enabled=1

download/install percona repo

$ sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
$ sudo yum list | grep proxysql

install proxysql

$ sudo yum install proxysql

@pondix
Copy link
Contributor

pondix commented Feb 2, 2019

Hi @ohsono - this is not a workaround since Percona repo's do not contain the latest ProxySQL packages.

@pondix
Copy link
Contributor

pondix commented Feb 2, 2019

@mcrauwel I've created "latest" please check if it works and let us know

@mcrauwel
Copy link
Contributor Author

mcrauwel commented Feb 5, 2019

@pondix this works out of the box for Amazon Linux AMI. However the AMI2 is starting to be more used afaik and there it doesn't work yet. I would suggest to add a block of docs to the repo.proxysql.com info like this:

Amazon Linux Servers :

vi /etc/yum.repos.d/proxysql.repo
[proxysql_repo]
name= ProxySQL YUM repository
baseurl=http://repo.proxysql.com/ProxySQL/proxysql-1.4.x/centos/latest
gpgcheck=1
gpgkey=http://repo.proxysql.com/ProxySQL/repo_pub_key


Install :
yum install proxysql OR yum install proxysql-version

@pondix pondix closed this as completed Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants