amazon-linux-2023 icon indicating copy to clipboard operation
amazon-linux-2023 copied to clipboard

[Package Request] - yq

Open usui-tk opened this issue 3 years ago • 6 comments

What package is missing from Amazon Linux 2022? Please describe and include package name.

yq

link here -> https://github.com/mikefarah/yq

Is this an update to existing package or new package request?

Is a new package.

Is this package available in Amazon Linux 2?

No, This package is not provided with Amazon Linux 2.

However, it is provided in the Oracle Linux v8 extended repository as a reference for building new RPM packages.

[yq] https://public-yum.oracle.com/repo/OracleLinux/OL8/olcne15/x86_64/index_src.html https://public-yum.oracle.com/repo/OracleLinux/OL8/olcne15/x86_64/getPackageSource/yq-3.4.0-3.el8.src.rpm

Number of users impacted

It improves developer productivity by facilitating queries against YAML-formatted files generated by the various development tools provided by AWS. It also improves compatibility with various continuous integration tools.

usui-tk avatar Aug 06 '22 11:08 usui-tk

It would be super nice to have both jq & yq available by default. :+1:

Spunkie avatar Aug 16 '22 04:08 Spunkie

third this. I guess we could use FPM to make our own?

munntjlx avatar May 09 '23 13:05 munntjlx

I created a RPM you can have a look at yq-4.33.3-1.amzn2023.zip

Name: yq
Version: 4.33.3
Release: 1%{?dist}
Summary: Command-line YAML processor
License: MIT
URL: https://github.com/mikefarah/yq
Source0: %{name}-%{version}.tar.gz

BuildRequires: golang
BuildRequires: gcc
BuildRequires: g++

%global _hardened_build 1
%global debug_package %{nil}

%description
yq is a command-line YAML processor that can read, modify and write YAML data.

%prep
%autosetup -n %{name}-%{version}

%build
go build -v -trimpath -buildmode=pie -tags netgo -ldflags="-s -w" -o %{name}

%install
install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name}

%files
%{_bindir}/yq

danie-dejager avatar May 10 '23 11:05 danie-dejager

@Kemotaha

The Fedora project has officially built and released yq as a RPM package. Therefore, I would like to use these artifacts in Amazon Linux 2023.

[Reference links] https://packages.fedoraproject.org/pkgs/yq/yq/index.html

https://src.fedoraproject.org/rpms/yq/tree/rawhide https://src.fedoraproject.org/rpms/yq/blob/rawhide/f/yq.spec

usui-tk avatar May 20 '24 15:05 usui-tk

Shouldn't it be closed as done?

Amazon Linux 2023 provides jq RPM package for a long time.

Latest release (see jq): https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.8.html

volphy avatar Aug 13 '25 11:08 volphy

Shouldn't it be closed as done?

Amazon Linux 2023 provides jq RPM package for a long time.

Latest release (see jq): https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.8.html

This feature request is about yq, which handles YAML. jq handles JSON. So no, this request shouldn't be closed as done.

awsthk avatar Aug 13 '25 12:08 awsthk