update/README.md

45 lines
1.2 KiB
Markdown
Raw Normal View History

2023-01-21 03:35:48 +01:00
# Update
2022-12-04 00:59:37 +01:00
2024-07-07 01:15:10 +02:00
Update script written in Bash for Arch Linux only. Keeps all your official, aur packages and your flatpaks up to date with one simple script. It also backups a list of all your installed packages and flatpaks.
2023-01-21 03:35:48 +01:00
2023-10-29 00:17:28 +02:00
## Requirements
2023-01-21 03:35:48 +01:00
2024-07-07 01:15:10 +02:00
It requires sudo, but if you use something else, then just create a softlink for this script to work.
2023-10-29 00:21:01 +02:00
Doing that would look like this.
2023-01-21 03:35:48 +01:00
```bash
2023-10-29 00:17:28 +02:00
ln -s /usr/bin/your_program /usr/bin/sudo
2023-01-21 03:35:48 +01:00
```
2023-10-29 00:17:28 +02:00
## Installation
2023-01-21 03:35:48 +01:00
```bash
2023-10-29 00:17:28 +02:00
git clone https://gitea.hopeless-cloud.xyz/AustrianToast/update.git && cd update
2023-01-21 03:35:48 +01:00
```
2023-10-29 00:17:28 +02:00
2024-07-07 01:15:10 +02:00
Before installing, please edit the config and configure it to your liking.
2023-10-29 00:17:28 +02:00
Then install using
```bash
2024-07-07 01:15:10 +02:00
make
```
2023-01-21 03:35:48 +01:00
## Usage
```
Usage: update [OPTION]
options:
2023-03-09 00:08:16 +01:00
no flag same as -p
2023-01-31 00:29:35 +01:00
-f updates using flatpak update only
-p updates using a pacman-wrapper only
-a updates using flatpak update and a pacman-wrapper
2023-04-04 10:38:20 +02:00
-g shutdowns the computer afterwards
-r reboots the computer afterwards
--help displays this message
2023-04-04 10:38:52 +02:00
--preview shows a preview of which pkg's will be updates
2023-04-04 10:38:20 +02:00
--version prints out the version number
2023-11-30 23:43:32 +01:00
--backup just does the before-backup without updating
2023-01-21 03:35:48 +01:00
```
2024-07-07 01:15:10 +02:00
## Contributing
2023-03-09 00:27:01 +01:00
Contributions are always welcome!