{"id":17181184,"url":"https://github.com/hmage/norm","last_synced_at":"2025-04-13T16:11:49.267Z","repository":{"id":24728296,"uuid":"28140478","full_name":"hmage/norm","owner":"hmage","description":"Rootless installer","archived":false,"fork":false,"pushed_at":"2025-04-09T22:28:54.000Z","size":3683,"stargazers_count":42,"open_issues_count":2,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T16:11:43.968Z","etag":null,"topics":["compilation","compiling","gcc","non-root","norm","package-manager","shell","sysadmin"],"latest_commit_sha":null,"homepage":"http://hmage.github.io/norm","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-17T14:24:28.000Z","updated_at":"2025-04-09T22:28:58.000Z","dependencies_parsed_at":"2023-01-16T22:15:25.420Z","dependency_job_id":"5603a41e-797d-4305-a904-c580395f963b","html_url":"https://github.com/hmage/norm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmage%2Fnorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmage%2Fnorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmage%2Fnorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmage%2Fnorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmage","download_url":"https://codeload.github.com/hmage/norm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741198,"owners_count":21154255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compilation","compiling","gcc","non-root","norm","package-manager","shell","sysadmin"],"created_at":"2024-10-15T00:33:18.636Z","updated_at":"2025-04-13T16:11:49.242Z","avatar_url":"https://github.com/hmage.png","language":"Shell","readme":"NORM — Non-root build Manager\n=============================\n\n * Don't have root privileges?\n * Don't want to wait for your sysadmin to install something trivial like new version of midnight commander?\n * Sysadmins don't have new version of gcc or don't know how to install it?\n\nNot a problem!\n\n`norm` will download, compile and install stuff into a directory in your home folder without requiring superuser access.\n\n## Quickstart\n\n```bash\ngit clone https://github.com/hmage/norm ~/norm\necho '[ -f $HOME/norm/.bashrc ] \u0026\u0026 . $HOME/norm/.bashrc' \u003e\u003e ~/.bashrc\n. ~/norm/.bashrc\nnorm install mc\n```\n\nAfter waiting a bit, you'll get a fresh version of `mc` in your `$PATH`. Just type `mc` to start using it.\n\n`norm` places everything it builds into a subdirectory in your home folder.\n\nTo prevent problems with NFS-shared homes, it puts system identification in the subdirectory's name, for example on Linux with glibc version 2.19 and Haswell CPU, the name will be `norm.x86_64-pc-linux-gnu.2.19.haswell`.\n\n## How it's done\n\n`norm` downloads the source code and compiles almost all dependencies. This is to avoid problems when some application (for example `aria2`) detects that a system has an optional library (for example `libpsl`) but fails to compile, because the system-provided library is too old.\n\nPlease be aware that binaries that `norm` installs are not portable — the expected paths are usually absolute — just like `/usr`, but for example in my case it'll be `/home/hmage/norm.x86_64-pc-linux-gnu.2.19.haswell`.\n\nMoving binaries around will most certainly break them.\n\nPlease treat them as your own personal builds (which they are).\n\n## Proxies\n\nSince `norm` uses `curl`, `wget`, and `aria2c` to download, you can use proxies. Just set up the usual environment variables, like this:\n\n```bash\nexport http_proxy=http://192.168.20.99:8080/\nexport https_proxy=$http_proxy\nexport ftp_proxy=$http_proxy\n```\n\nReplace the IP address and port number with appropriate values for your proxy. You can add this to your `.bashrc` if you haven't done so.\n\n## Formula format\n\n`norm` formulae are bash scripts, here's a [working example](https://github.com/hmage/norm/blob/master/packages/gzip):\n\n```bash\n#!/bin/bash\n\nfetch_source http://ftpmirror.gnu.org/gzip/gzip-1.12.tar.gz 91fa501ada319c4dc8f796208440d45a3f48ed13\n\ndo_unpack_compile\n```\n\nAnd that's it. It will download, unpack, run `./configure` with proper parameters, then `make` and `make install` into installation prefix that is located in user's home directory.\n\n## More examples\n\n * [`norm install ffmpeg`](https://github.com/hmage/norm/blob/master/packages/ffmpeg) — if you're on Ubuntu or Debian, then your `ffmpeg` version can be either _very_ outdated or not present at all. This will get you the newest ffmpeg with support for x264, x265, webm, opus and `fdk-aac`.\n * [`norm install mc`](https://github.com/hmage/norm/blob/master/packages/mc) — latest midnight commander is much nicer than it was a few years ago.\n\n## Adding new formula\n\nTo simplify creating the formula, `norm` provides functions that reduce amount of typing needed for building most software:\n * `depends_on` — will build the mentioned formulae.\n * `fetch_source` — downloads the source and verifies checksum.\n * `do_unpack_compile` — unpacks the source code and builds it.\n\nThere are more, but these are the most commonly needed.\n\nIf source code uses autotools or cmake, `norm` detects that and compiles appropriately.\n\nIf the build system is something else, or extra steps are needed to successfully build the formula, there are [other functions](https://github.com/hmage/norm/blob/master/norm_common.functions) provided, their names and comments should be self explanatory.\n\nTo see a more complex example, take a look at [how go is built](https://github.com/hmage/norm/blob/master/packages/go).\n\n## Reporting bugs\n\nSee https://github.com/hmage/norm/issues.\n\nAlso, you can contact me at [hmage@hmage.net](mailto:hmage@hmage.net).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmage%2Fnorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmage%2Fnorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmage%2Fnorm/lists"}