From owner-freebsd-questions@freebsd.org Mon Jun 1 18:42:32 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4466233EB29 for ; Mon, 1 Jun 2020 18:42:32 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (mail.covisp.net [65.121.55.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49bPDR2fpvz4Qm4 for ; Mon, 1 Jun 2020 18:42:30 +0000 (UTC) (envelope-from kremels@kreme.com) From: "@lbutlr" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: freebsd-update versions? Date: Mon, 1 Jun 2020 12:42:28 -0600 References: <43710642-9E74-40DC-A50C-9DC0C9C4BED1@kreme.com> To: FreeBSD In-Reply-To: Message-Id: <695847E2-3AA9-42CC-93C4-3258C37EEB47@kreme.com> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 49bPDR2fpvz4Qm4 X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kremels@kreme.com designates 65.121.55.42 as permitted sender) smtp.mailfrom=kremels@kreme.com X-Spamd-Result: default: False [1.38 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.46)[-0.455]; FROM_HAS_DN(0.00)[]; MISSING_MIME_VERSION(2.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_NA(0.00)[kreme.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.26)[-0.261]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.50)[-0.504]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:65.112.0.0/12, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[65.121.55.42:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2020 18:42:32 -0000 On 01 Jun 2020, at 08:38, Matthew Seaman wrote: > On 31/05/2020 21:59, @lbutlr wrote: >> Since there is not a way to see the available versions via the >> freebsd-update tool, what is the recommended way to get access to a = list >> of what is available for use with freebsd-update -r? >=20 > By checking on this web page under 'Production Release': > https://www.freebsd.org/releases/ That is not that helpful when you are on the console, or even when you = are in a ssh session since you have to then switch to some other program = to check. Is there really no way to list the current versions other than = accessing a web page? On 01 Jun 2020, at 09:03, Polytropon wrote: > This (and the "Errata" subpages) are quite informative, but > I assume the information expected is something like this: >=20 > # freebsd-update -e <- what we could get > 12.1-RELEASE-p7 > 12.2-RELEASE >=20 > # freebsd-update -r upgrade Yes, something very much like this without having to go 'off-server' for = a web browser or do some scraping along the lines of wget -q -O- https://www.freebsd.org/releases/ \ | grep "Production Release:" \ | awk -F'>' '{print $4}' \ | sed 's/.\{3\}$//' 12.1 11.3 Or wget -q -O- https://www.freebsd.org/releases/ \ | grep "

Release " \ # or grep "Release [0-9]" if you = prefer | awk '{print $2}' \ | sed 's/.\{4\}$//' Which is bound to fail at some point. (Sooner more likely than later.) --=20 I SAW NOTHING UNUSUAL IN THE TEACHER'S LOUNGE Bart chalkboard Ep. 8F17