How to install asio-devel, glpk-devel packages on Amazon Linux 2023?

0

I have tried to install asio-devel nad glpk-devel packages on Amazon Linux 2023. Tried that with yum and with dnf, the result is the same:

No match for argument: glpk-devel / asio-devel
Error: Unable to find a match: glpk-devel / asio-devel
Vasko
asked 7 months ago347 views
1 Answer
0
Accepted Answer

Hello.

Looking at the document below, it seems that Amazon Linux 2023 does not include the package you are trying to install.
https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.2.html

profile picture
EXPERT
answered 7 months ago
  • Okay, and is there any way to install them? On Amazon Linux 2 they were installed like this:

               -amazon-linux-extras install -y epel
              - yum install -y asio-devel glpk-devel openssl-devel
    

    But, as far as I know there is no support for epel on Amazon Linux 2023.

    So is there a way that I can install these packages?

  • Try installing by adding the following commands and settings. Those packages were included in the Fedora repositories. https://packages.fedoraproject.org/pkgs/glpk/glpk-devel/fedora-37.html https://src.fedoraproject.org/rpms/asio

    sudo vi /etc/yum.repos.d/fedora.repo
    
    [fedora]
    name=Fedora 37 - $basearch
    #baseurl=http://download.example/pub/fedora/linux/releases/37/Everything/$basearch/os/
    metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-37&arch=$basearch
    enabled=0
    countme=1
    metadata_expire=7d
    repo_gpgcheck=0
    type=rpm
    gpgcheck=1
    gpgkey=https://getfedora.org/static/fedora.gpg
    skip_if_unavailable=False
    
    sudo dnf --enablerepo=fedora install glpk-devel -y
    sudo dnf --enablerepo=fedora install asio-devel -y
  • Thank you! This is working!!

  • If you want to make it a shell script, the following will work.

    #!/bin/bash
    
    cat <<EOF > /etc/yum.repos.d/fedora.repo
    [fedora]
    name=Fedora 37 - \$basearch
    #baseurl=http://download.example/pub/fedora/linux/releases/37/Everything/\$basearch/os/
    metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-37&arch=\$basearch
    enabled=0
    countme=1
    metadata_expire=7d
    repo_gpgcheck=0
    type=rpm
    gpgcheck=1
    gpgkey=https://getfedora.org/static/fedora.gpg
    skip_if_unavailable=False
    EOF

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions