Created
December 1, 2022 02:00
-
-
Save enpitsuLin/fc43174ae58752c72f97be3c4b5c04d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see what terrible and stupid thing I just did (openssl 1.0.2-k to 1.1.0.e without updating everything else) | |
tail /var/log/pacman.log | |
# remove the newly installed openssl files by listing all the files in the packages tar and removing them (taking care not to rm directories) | |
tar -tf /var/cache/pacman/pkg/openssl-1.1.0.e-1-x86_64.pkg.tar.xz | #list all the files | |
sed s:^:/:| # put the leading / on all entries | |
grep -v /$ | # remove folders from list (skip if it ends with /) | |
xargs rm # remove all the files | |
# go to root and extract the old package -- like nothing ever happend | |
cd / | |
tar -xf /var/cache/pacman/pkg/openssl-1.0.2.k-1-x86_64.pkg.tar.xz | |
# update everything the right way | |
# must include openssl b/c pacman's db thinks we already have the new one | |
pacman -Syu openssl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment