Score:0

How to install varnish cache in Amazon Linux 2023?

ae flag

I want to install varnish cache 6 in Amazon Linux 2023.

Sudo dnf install varnish

Above command returns no packages found message.

Tried with direct rpm package installation but it failed to resolve so many dependencies.

Even tried with packagecloud repo, but all methods failed to install as some dependencies always missing.

Please advise if anybody knows the correct way to install varnish cache in Amazon linux 2023

Romeo Ninov avatar
in flag
This question should include more details and clarify the problem.
Rinto George avatar
ae flag
@RomeoNinov updated the question for clarity
Score:0
in flag

While there are no official Varnish packages for Amazon Linux, you could try installing an EL9 package manually.

There's no guarantee on 100% compatibility, but I did manage to install it and run varnishd.

FYI: https://packagecloud.io/varnishcache is the place to find official Varnish packages.

Copy the URL of the download link and wget the RPM file on your server. Then you can install it using sudo dnf install.

Example using Varnish Cache 7.3

Here's an example using Varnish Cache 7.3:

sudo wget -O varnish.rpm https://packagecloud.io/varnishcache/varnish73/packages/el/9/varnish-7.3.0-1.el9.x86_64.rpm/download.rpm?distro_version_id=240

sudo dnf install varnish.rpm

Use Red Hat, Ubuntu or Debian instead

If you do want to make sure you can use official packages with 100% compatibility, you should consider switching to Red Hat, Ubuntu or Debian images on AWS.

See https://www.varnish-software.com/developers/tutorials/#installations for install guides.

Official Varnish AWS images

You could also use one of the official Varnish Software AWS images. Go to https://www.varnish-software.com/developers/tutorials/#cloud for install instructions for Debian or Red Hat.

FYI: the official AWS images will install Varnish Enterprise, the commercial version of Varnish. There will be an additional monthly license fee that is charged on top of the infrastructure cost. See https://docs.varnish-software.com/varnish-enterprise/ for more information about Varnish Enterprise features.

Bernard avatar
cn flag
This does not work for Amazon Linux 2023 (AL2023). This may work for Amazon Linux 2.
Score:0
in flag

The usual way to install package not from repo and get in consideration dependencies is to use command:

yum localinstall path://to/varnish.rpm

where the path can be URL or filesystem path

Rinto George avatar
ae flag
Let me check this way!
Romeo Ninov avatar
in flag
@Duke, did you check it?
Rinto George avatar
ae flag
Not yet, the server I am testing this feature has been shared with payment gateway team for verification. So can't break the website now. I will try it once they verification is done.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.