unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Bone Baboon <bone.baboon@disroot.org>
To: help-guix@gnu.org
Subject: Re: Installing a previous version of a package
Date: Thu, 01 Apr 2021 20:57:15 -0400	[thread overview]
Message-ID: <87h7kpfqqc.fsf@disroot.org> (raw)
In-Reply-To: <878s69tj2c.fsf@disroot.org>


How do others install a specific previous version of a package using
their system configuration and the `guix system reconfigure config.scm`
command?

I have been able to get a previous version of a package installed in
this case the 2.4.9 version of openvpn.

The command I used was:
`guix package --install-from-file=openvpn-2-4-9.scm`

The contents of `openvpn-2-4-9.scm` is below.  It is based on the
openvpn part of `guix/gnu/packages/vpn.scm` at the git commit that
defined version 2.4.9 of openvpn. 

```
(use-modules ((guix licenses) #:prefix license:)
	     (guix packages)
	     (guix download)
	     (guix git-download)
	     (guix build-system cmake)
	     (guix build-system gnu)
	     (guix build-system linux-module)
	     (guix build-system python)
	     (gnu packages)
	     (gnu packages admin)
	     (gnu packages base)
	     (gnu packages bash)
	     (gnu packages check)
	     (gnu packages dns)
	     (gnu packages autotools)
	     (gnu packages compression)
	     (gnu packages gettext)
	     (gnu packages gnupg)
	     (gnu packages guile)
	     (gnu packages libevent)
	     (gnu packages linux)
	     (gnu packages nss)
	     (gnu packages perl)
	     (gnu packages pkg-config)
	     (gnu packages python)
	     (gnu packages python-xyz)
	     (gnu packages tls)
	     (gnu packages xml))

(package
 (name "openvpn")
 (version "2.4.9")
 (source (origin
          (method url-fetch)
          (uri (string-append
                "https://swupdate.openvpn.org/community/releases/openvpn-"
                version ".tar.xz"))
          (sha256
           (base32
            "1qpbllwlha7cffsd5dlddb8rl22g9rar5zflkz1wrcllhvfkl7v4"))))
 (build-system gnu-build-system)
 (arguments
  '(#:configure-flags '("--enable-iproute2=yes")))
 (native-inputs
  `(("iproute2" ,iproute)))
 (inputs
  `(("lz4" ,lz4)
    ("lzo" ,lzo)
    ("openssl" ,openssl)
    ("linux-pam" ,linux-pam)))
 (home-page "https://openvpn.net/")
 (synopsis "Virtual private network daemon")
 (description
  "OpenVPN implements virtual private network (@dfn{VPN}) techniques
for creating secure point-to-point or site-to-site connections in routed or
bridged configurations and remote access facilities.  It uses a custom
security protocol that utilizes SSL/TLS for key exchange.  It is capable of
traversing network address translators (@dfn{NAT}s) and firewalls.")
 (license license:gpl2))
```


      parent reply	other threads:[~2021-04-02  0:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-27  2:40 Installing a previous version of a package Bone Baboon
2021-03-27  8:29 ` Oleg Pykhalov
2021-03-27 15:03   ` Bone Baboon
2021-04-02  0:57 ` Bone Baboon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7kpfqqc.fsf@disroot.org \
    --to=bone.baboon@disroot.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).