arch/README.md

97 lines
2.3 KiB
Markdown
Raw Normal View History

2021-06-21 13:16:46 +02:00
# My personalized Arch Linux distribution
2021-04-19 21:56:06 +02:00
## Cloning this repository
2021-07-09 13:47:47 +02:00
```shell
git clone --recurse-submodules https://codeberg.org/privacy1st/arch && cd arch
2021-06-17 15:32:47 +02:00
```
Or equivalently:
2021-06-16 16:12:02 +02:00
```shell
git clone https://codeberg.org/privacy1st/arch
cd arch
git submodule update --init --recursive
2021-06-16 16:12:02 +02:00
```
2021-05-14 14:50:43 +02:00
## Build packages from source
Fork this repository.
Then and adjust the following files:
* [pkg/de-p1st-repo/arch-repo.cfg](pkg/de-p1st-repo/arch-repo.cfg)
2021-06-16 16:12:02 +02:00
* For your build-machine, adjust section `LOCAL MACHINE CONFIGURATION`: Add absolute path of folder [build-pkg/out](build-pkg/out) to array `LOCAL_PKG_DIRS`
2021-05-14 14:50:43 +02:00
as the build packages will be stored there.
* For your mirror-server, adjust section `REMOTE MIRROR SERVER CONFIGURATION` accordingly.
* [pkg/de-p1st-pacman/pacman.d/de-p1st](pkg/de-p1st-pacman/pacman.d/de-p1st)
* Add the address of your mirror-server.
2021-06-18 21:46:50 +02:00
Build [de-p1st-repo](pkg/de-p1st-repo):
2021-05-14 14:50:43 +02:00
```shell
2021-07-01 12:42:16 +02:00
sudo docker-compose -f build-pkg/docker-compose.yml run --rm makepkg de-p1st-repo
2021-05-14 14:50:43 +02:00
```
2021-06-18 21:46:50 +02:00
Install it on your build-machine and your mirror-server:
2021-05-14 14:50:43 +02:00
```shell
2021-06-18 21:46:50 +02:00
# On your local machine
2021-05-14 14:50:43 +02:00
sudo pacman -U out/de-p1st-repo*.pkg.tar.*
2021-06-18 21:46:50 +02:00
# Copy the package to your mirror-server and install it there as well!
2021-05-14 14:50:43 +02:00
```
Then you can start building all packages and adding them to your mirror-server:
```shell
2021-07-01 12:42:16 +02:00
./build-pkg/build-all
2021-05-14 14:50:43 +02:00
```
## Adding/removing AUR packages
There are several [AUR](https://aur.archlinux.org/) packages added as submodules inside [pkg](pkg).
See [build-pkg/pkglist-AUR.txt](build-pkg/pkglist-AUR.txt) for a full list.
They were added in the following manner:
```shell
AUR_PKG=xml2
git submodule add "https://aur.archlinux.org/${AUR_PKG}.git" pkg/"${AUR_PKG}"
# echo "Add ${AUR_PKG} to 'build-pkg/pkglist-AUR.txt'. Each line represents one build stage."
```
And can be removed with:
```shell
AUR_PKG=xml2
2021-09-09 13:36:47 +02:00
git rm -f pkg/"${AUR_PKG}"
2021-09-09 14:47:58 +02:00
# echo "Above command should remove ${AUR_PKG} from '.gitmodules'."
```
## Update submodules of AUR packages
To update all submodules and add those who received an update to
[build-pkg/pkglist.tmp](build-pkg/pkglist.tmp), run
```shell
./git-pull
```
2021-09-09 13:45:28 +02:00
2021-07-01 12:42:16 +02:00
## Build outdated AUR packages
The following command includes `./git-pull`.
2021-07-01 12:42:16 +02:00
```shell
./build-pkg/pull-and-build-outdated
```
2021-05-14 14:50:43 +02:00
2021-06-18 22:00:09 +02:00
## Install Arch Linux
2021-04-21 21:49:21 +02:00
2021-06-18 21:46:50 +02:00
See [pkg/de-p1st-installer/README.md](pkg/de-p1st-installer/README.md)
2021-05-13 19:23:32 +02:00
2021-06-18 21:46:50 +02:00
## Notes and TODOs
2021-05-13 17:44:02 +02:00
2021-07-01 12:42:16 +02:00
See [notes.md](notes.md)