diff options
author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2016-12-02 16:47:14 +0000 |
---|---|---|
committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2016-12-02 16:47:14 +0000 |
commit | 8919ec5f62cfc6735ce9d42872372e0806b2ba49 (patch) | |
tree | 40bd03ba166db19641d717cfbc4f65c8dd4029ce /MAINTAIN.md | |
parent | cd51021ddaa9c24efc80dd3b96433dd2246050d6 (diff) | |
download | tweed-8919ec5f62cfc6735ce9d42872372e0806b2ba49.tar.gz |
wrap long lines in markdown files
Diffstat (limited to 'MAINTAIN.md')
-rw-r--r-- | MAINTAIN.md | 58 |
1 files changed, 40 insertions, 18 deletions
diff --git a/MAINTAIN.md b/MAINTAIN.md index d378832..1e5ca62 100644 --- a/MAINTAIN.md +++ b/MAINTAIN.md @@ -1,15 +1,29 @@ # Tweed.MAINTAIN -*TWEED* applications are upgraded by updating the respective package manager. The update procedure installs new versions of the applications and any new versions of dependencies. The update frequency can be determined by keeping an eye out for new application versions. If there are of the order of ten version upgrades per year, for example, then a monthly upgrade cycle would be a good way to keep up-to-date. - -All three package managers use a hash value as part of the pathname for an application. Since all versions of an application have a different hash value there is no conflict between older and newer versions. Older versions are retained in the store by default. It is possible to immediately switch to any version that has previously been installed. - -Each of the three package managers has its own update procedure. To upgrade any given application it is only necessary to update one package manager. Sometimes an application has not been upgraded but some of its dependencies have been. It is up to the user to decide whether or not to update the package manager in this case. It is often acceptable to skip the dependency updates and wait for an upgrade to the application itself. - -The update procedures are outlined below. Each package manager also offers a way to delete unused files. This is termed *garbage collection*. +*TWEED* applications are upgraded by updating the respective package manager. +The update procedure installs new versions of the applications and any new +versions of dependencies. The update frequency can be determined by keeping an +eye out for new application versions. If there are of the order of ten version +upgrades per year, for example, then a monthly upgrade cycle would be a good +way to keep up-to-date. + +All three package managers use a hash value as part of the pathname for an +application. Since all versions of an application have a different hash value +there is no conflict between older and newer versions. Older versions are +retained in the store by default. It is possible to immediately switch to any +version that has previously been installed. + +Each of the three package managers has its own update procedure. To upgrade +any given application it is only necessary to update one package manager. +Sometimes an application has not been upgraded but some of its dependencies +have been. It is up to the user to decide whether or not to update the package +manager in this case. It is often acceptable to skip the dependency updates +and wait for an upgrade to the application itself. + +The update procedures are outlined below. Each package manager also offers a +way to delete unused files. This is termed *garbage collection*. Part 1: GNU Guix update procedure --------------------------------- - The command to update the GNU Guix installation is: $ guix package --upgrade @@ -22,15 +36,16 @@ The command to delete previous application versions is: $ guix package --delete-generations -The command to download the latest version of GNU Guix, with its list of the new package versions, is: +The command to download the latest version of GNU Guix, with its list of the +new package versions, is: $ guix pull -More information on these commands is avaialable in the [GNU Guix manual](https://www.gnu.org/software/guix/manual/html_node/index.html). +More information on these commands is avaialable in the [GNU Guix +manual](https://www.gnu.org/software/guix/manual/html_node/index.html). Part 2: Nix update procedure ---------------------------- - The command to update the Nix installation is: $ nix-env --upgrade @@ -47,20 +62,25 @@ The command to download the latest list of the packages is: $ nix-channel --update -More information on these commands is avaialable in the [Nix manual](http://nixos.org/nix/manual/). +More information on these commands is avaialable in the [Nix +manual](http://nixos.org/nix/manual/). Part 3: HashDist update procedure --------------------------------- - -There are two stages to an update of the HashDist store; first updating the HashStack with the latest build instructions, then re-running the build process. To update the HashStack use git: +There are two stages to an update of the HashDist store; first updating the +HashStack with the latest build instructions, then re-running the build +process. To update the HashStack use git: $ git pull origin master -The HashDist update procedure is a repeat of the latter part of the original installation process. First, move to the HashStack directory and delete the ``default`` link: +The HashDist update procedure is a repeat of the latter part of the original +installation process. First, move to the HashStack directory and delete the +``default`` link: $ rm default -Then, for a system with M cores available for the build process, run the command: +Then, for a system with M cores available for the build process, run the +command: $ hit build -jM @@ -68,10 +88,12 @@ followed by: $ sh tweed.hashdist.post-install -HashDist deletes previous application versions and removes unused files in one command: +HashDist deletes previous application versions and removes unused files in one +command: $ hit gc -More information on HashDist is avaialable in the [HashDist manual](http://hashdist.readthedocs.io/en/latest/index.html). +More information on HashDist is avaialable in the [HashDist +manual](http://hashdist.readthedocs.io/en/latest/index.html). |