Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] Re: Latest "rfc's" package?
Hello,

On Sun, 25 Jun 2017, L A Walsh wrote:
Patrick Shanahan wrote:
* L A Walsh <suse@xxxxxxxxx> [06-24-17 14:58]:
I was looking for the latest release
of the 13.2 package "rfc-2011.9.9-44.1.2.noarch.rpm".

Is it under a different name, or is the 13.2 version
the latest released version?

software.opensuse.org/search
Thanks, but if it is under a different name, how would I know
what to search for?

Carlos only found the 2011 version, so its either the latest
version, or its under a different name (thus my question).

FWIW, if you create a user-writeable directory, you can use this:

==== /usr/local/bin/rfc ====
#!/bin/bash
: ${PAGER:=less}
RFCPATH="/usr/local/share/doc/rfc" ### ADJUST THIS
RFC="${RFCPATH}/rfc${1}.txt"
FOUND=no
URL="http://www.ietf.org/rfc/";

ugz=( "gzip" "-dc" )
ubz=( "bzip2" "-dc" )
uxz=( "xz" "-dc" )

for ext in "" ".bz2" ".gz" ".xz"; do
if test -f "${RFC}${ext}"; then
FOUND=yes
RFC="${RFC}${ext}"
case "$ext" in
*.gz) CMD=( "${ugz[@]}" "${RFC}" );;
*.bz2) CMD=( "${ubz[@]}" "${RFC}" );;
*.xz) CMD=( "${uxz[@]}" "${RFC}" );;
*) CMD=( cat "${RFC}" );;
esac
break;
fi
done
if test "x$FOUND" != "xyes"; then
echo "not found. Trying to fetch" >&2;
if ! wget -O "${RFC}" "${URL}/rfc${1}.txt"; then
exit 1;
fi
xz -v "${RFC}"
CMD=( "${uxz[@]}" "${RFC}${ext}" )
fi

"${CMD[@]}" | "${PAGER}"
====

You could also download to tmp and "sudo" to mv it to the rfc-dir or
whatnot. Depends on your setup ;) Anyway ...

Then just happily use e.g. call 'rfc 1149' from your shell, and over
time, you'll get your archive.

If you want it now, there's e.g. 'wget -m -np'...

HTH,
-dnh

--
There exists no way of exchanging information without making judgments.
-- Bene Gesserit Axiom

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >