Compare commits
2 Commits
b30dea35b8
...
b2f5793c21
Author | SHA1 | Date | |
---|---|---|---|
b2f5793c21 | |||
edd942b91a |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
pacundo
|
39
Makefile
Normal file
39
Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# Copyright (C) 2024 Ortega Froysa, Nicolás <nicolas@ortegas.org> All rights reserved.
|
||||
# Author: Ortega Froysa, Nicolás <nicolas@ortegas.org>
|
||||
#
|
||||
# This software is provided 'as-is', without any express or implied
|
||||
# warranty. In no event will the authors be held liable for any damages
|
||||
# arising from the use of this software.
|
||||
#
|
||||
# Permission is granted to anyone to use this software for any purpose,
|
||||
# including commercial applications, and to alter it and redistribute it
|
||||
# freely, subject to the following restrictions:
|
||||
#
|
||||
# 1. The origin of this software must not be misrepresented; you must not
|
||||
# claim that you wrote the original software. If you use this software
|
||||
# in a product, an acknowledgment in the product documentation would be
|
||||
# appreciated but is not required.
|
||||
#
|
||||
# 2. Altered source versions must be plainly marked as such, and must not be
|
||||
# misrepresented as being the original software.
|
||||
#
|
||||
# 3. This notice may not be removed or altered from any source
|
||||
# distribution.
|
||||
|
||||
PREFIX=/usr/local
|
||||
|
||||
pacundo: pacundo.pl
|
||||
pp -o $@ $^
|
||||
|
||||
pacundo.1.gz: pacundo.1
|
||||
gzip -c $^ > $@
|
||||
|
||||
.PHONY: install clean
|
||||
|
||||
clean:
|
||||
$(RM) pacundo
|
||||
$(RM) pacundo.1.gz
|
||||
|
||||
install: pacundo pacundo.1.gz
|
||||
install -m 755 pacundo $(PREFIX)/bin/
|
||||
install -m 644 pacundo.1.gz $(PREFIX)/share/man/man1/
|
@ -11,6 +11,14 @@ Dependencies:
|
||||
|
||||
- Perl 5
|
||||
- `File::ReadBackwards` module
|
||||
- PAR Packager (for compiling)
|
||||
- GNU Makefile
|
||||
|
||||
You can install these packages with the following command:
|
||||
|
||||
```console
|
||||
# pacman -S perl perl-file-readbackwards perl-par-packer
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
|
46
pacundo.1
Normal file
46
pacundo.1
Normal file
@ -0,0 +1,46 @@
|
||||
.TH PACUNDO "1" "April 2024" "pacundo 1.0" "User Commands"
|
||||
.SH "NAME"
|
||||
pacundo - A time machine to return your ArchLinux machine back to a working state.
|
||||
.SH "SYNOPSIS"
|
||||
.B pacundo
|
||||
[\fI\-i\fR|\fI\-r\fR] [\fI\-t\fR <\fInum\fR>] [\fI\-d\fR]
|
||||
|
||||
.B pacundo
|
||||
\fI\-h\fR
|
||||
|
||||
.B pacundo
|
||||
\fI\-v\fR
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
This program helps to undo the last pacman/yay transactions automatically, which
|
||||
is especially helpful if the last update broke your system for some reason.
|
||||
|
||||
\fBNote:\fR the term \fItransaction\fR refers to an operation done by pacman
|
||||
(e.g. all packages upgraded by \fIpacman -Syu\fR).
|
||||
|
||||
.SH "OPTIONS"
|
||||
.TP
|
||||
\fB\-i\fR
|
||||
Interactively select the transactions to undo (default behavior)
|
||||
.TP
|
||||
\fB\-r\fR
|
||||
Non-interactively undo transactions
|
||||
.TP
|
||||
\fB\-t\fR <\fInum\fR>
|
||||
Select number of transactions to include (default: 1)
|
||||
.TP
|
||||
\fB\-h\fR
|
||||
Show help information
|
||||
.TP
|
||||
\fB\-v\fR
|
||||
Show program version
|
||||
|
||||
.SH "AUTHOR"
|
||||
Written by Nicolás A. Ortega Froysa.
|
||||
|
||||
.SH "COPYRIGHT"
|
||||
Copyright \(co 2024 Ortega Froysa, Nicolás A. <nicolas@ortegas.org>.
|
||||
License: ZLib License.
|
||||
|
||||
This is free software: you are free to change and redistribute it.
|
||||
There is NO WARRANTY, to the extent permitted by law.
|
Loading…
Reference in New Issue
Block a user