2024-02-22 17:58:30 +00:00
|
|
|
# pacundo
|
|
|
|
|
|
|
|
You know those times when you install some ArchLinux upgrades and it breaks your
|
|
|
|
system, and now you have to go in and downgrade those packages? It's a pain
|
|
|
|
ain't it? Well, this should make it slightly less of a pain (you may still have
|
|
|
|
to boot from a USB depending on just how broken it is).
|
|
|
|
|
2024-02-24 12:57:09 +00:00
|
|
|
## Installation
|
|
|
|
|
2024-04-30 15:21:08 +00:00
|
|
|
### Dependencies
|
2024-02-24 12:57:09 +00:00
|
|
|
|
|
|
|
- Perl 5
|
|
|
|
- `File::ReadBackwards` module
|
2024-05-25 16:24:41 +00:00
|
|
|
- cURL
|
2024-04-29 16:29:04 +00:00
|
|
|
- GNU Makefile
|
|
|
|
|
|
|
|
You can install these packages with the following command:
|
|
|
|
|
|
|
|
```console
|
2024-05-25 16:24:41 +00:00
|
|
|
# pacman -S perl perl-file-readbackwards curl
|
2024-04-29 16:29:04 +00:00
|
|
|
```
|
2024-02-24 12:57:09 +00:00
|
|
|
|
2024-04-30 15:21:08 +00:00
|
|
|
### Compiling & Installing
|
|
|
|
|
|
|
|
The script is compiled and installed using GNU Makefile. Therefore you can use
|
|
|
|
`make install` to build and install the script and its man-page as expected.
|
|
|
|
They are installed (by default) to `/usr/local`. To change this to a different
|
|
|
|
directory simply prepend the `PREFIX=<path>` to your `make install` command.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
The first concept to understand is that of a transaction. A transaction is
|
|
|
|
defined in the pacman logs as package operations done during a single use of the
|
|
|
|
command (or so it seems, at least). If you look at the logs
|
|
|
|
(`/var/log/pacman.log`) this would be everything between the lines `[ALPM]
|
|
|
|
transaction started` and `[ALPM] transaction completed`. You can set how many
|
|
|
|
transactions to list/undo by using the `-t` argument.
|
|
|
|
|
|
|
|
There are two modes for undoing pacman transactions:
|
|
|
|
|
|
|
|
- Interactive (`-i`, default): will show you a numbered list with all the package
|
|
|
|
operations of the selected transactions.
|
|
|
|
- Automatic (`-r`): will automatically undo all package operations of the
|
|
|
|
selected transactions.
|
|
|
|
|
|
|
|
Look at the man-page (`man pacundo`) for more information.
|
|
|
|
|
2024-05-07 16:07:13 +00:00
|
|
|
### Supported AUR Helpers
|
|
|
|
|
|
|
|
- [yay](https://github.com/Jguer/yay)
|
|
|
|
|
2024-02-22 17:58:30 +00:00
|
|
|
## License
|
|
|
|
|
|
|
|
This project is licensed under the terms & conditions of the Zlib license.
|