* [PATCH] nfs-utils: add install-dep for installing all dependencies
@ 2021-08-19 10:08 Jianhong Yin
2021-08-26 19:22 ` Steve Dickson
0 siblings, 1 reply; 2+ messages in thread
From: Jianhong Yin @ 2021-08-19 10:08 UTC (permalink / raw)
To: linux-nfs, steved; +Cc: Jianhong Yin, Jianhong Yin
whenever user want to compile and install from source code, they
have to constantly install dependencies based on error message.
I'm fed up
verified on RHEL-8/Fedora-34/debian-10/openSUSE-15.3
Signed-off-by: Jianhong Yin <yin-jianhong@163.com>
---
install-dep | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100755 install-dep
diff --git a/install-dep b/install-dep
new file mode 100755
index 00000000..621618fe
--- /dev/null
+++ b/install-dep
@@ -0,0 +1,21 @@
+#!/bin/bash
+#install dependencies for compiling from source code
+
+#RHEL/Fedora/CentOS-Stream/Rocky
+which dnf &>/dev/null || which yum &>/dev/null && {
+ yum install -y automake libtool make gcc rpcgen libtirpc-devel libevent-devel sqlite-devel device-mapper-devel \
+ libblkid-devel krb5-devel libuuid-devel
+}
+
+#Debian/ubuntu
+which apt &>/dev/null && {
+ apt install -o APT::Install-Suggests=0 -o APT::Install-Recommends=0 --ignore-missing -y \
+ autotools-dev automake make libtool pkg-config libtirpc-dev libevent-dev libsqlite3-dev \
+ libdevmapper-dev libblkid-dev libkrb5-dev libkeyutils-dev uuid-dev
+}
+
+#openSUSE Leap
+which zypper &>/dev/null && {
+ zypper in --no-recommends -y automake libtool make gcc rpcgen libtirpc-devel libevent-devel sqlite-devel \
+ device-mapper-devel libblkid-devel krb5-devel libuuid-devel
+}
--
2.18.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nfs-utils: add install-dep for installing all dependencies
2021-08-19 10:08 [PATCH] nfs-utils: add install-dep for installing all dependencies Jianhong Yin
@ 2021-08-26 19:22 ` Steve Dickson
0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2021-08-26 19:22 UTC (permalink / raw)
To: Jianhong Yin, linux-nfs; +Cc: Jianhong Yin
On 8/19/21 6:08 AM, Jianhong Yin wrote:
> whenever user want to compile and install from source code, they
> have to constantly install dependencies based on error message.
> I'm fed up
>
> verified on RHEL-8/Fedora-34/debian-10/openSUSE-15.3
>
> Signed-off-by: Jianhong Yin <yin-jianhong@163.com>
Committed... (Tag: nfs-utils-2-5-5-rc2)
steved.
> ---
> install-dep | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
> create mode 100755 install-dep
>
> diff --git a/install-dep b/install-dep
> new file mode 100755
> index 00000000..621618fe
> --- /dev/null
> +++ b/install-dep
> @@ -0,0 +1,21 @@
> +#!/bin/bash
> +#install dependencies for compiling from source code
> +
> +#RHEL/Fedora/CentOS-Stream/Rocky
> +which dnf &>/dev/null || which yum &>/dev/null && {
> + yum install -y automake libtool make gcc rpcgen libtirpc-devel libevent-devel sqlite-devel device-mapper-devel \
> + libblkid-devel krb5-devel libuuid-devel
> +}
> +
> +#Debian/ubuntu
> +which apt &>/dev/null && {
> + apt install -o APT::Install-Suggests=0 -o APT::Install-Recommends=0 --ignore-missing -y \
> + autotools-dev automake make libtool pkg-config libtirpc-dev libevent-dev libsqlite3-dev \
> + libdevmapper-dev libblkid-dev libkrb5-dev libkeyutils-dev uuid-dev
> +}
> +
> +#openSUSE Leap
> +which zypper &>/dev/null && {
> + zypper in --no-recommends -y automake libtool make gcc rpcgen libtirpc-devel libevent-devel sqlite-devel \
> + device-mapper-devel libblkid-devel krb5-devel libuuid-devel
> +}
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-26 19:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19 10:08 [PATCH] nfs-utils: add install-dep for installing all dependencies Jianhong Yin
2021-08-26 19:22 ` Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).