chdsl
January 7, 2021, 6:27pm
#1
Is it possible to delete a folder in /var/lib/pacman/local/
, so pacman won’t update?
The developer in AUR is not updating microsoft-edge-dev-bin, so I’d like to delete it, so pacman won’t update. I can update this browser by extracting the data and replacing the contents in /opt.
pebcak
January 7, 2021, 6:29pm
#2
Why not just un-install it?
chdsl
January 7, 2021, 6:31pm
#3
If I uninstall, it’d delete everything, maybe configs too. Isn’t /var/lib/pacman/local/
, where pacman find what to update?
pebcak
January 7, 2021, 6:39pm
#4
The user configs are under your home directory, so they won’t be removed. You could just run:
sudo pacman -Rs PACKAGE
Alternatively you could add it to /etc/pacman.conf to ignore the update. Just add it at the line:
IgnorePkg=PACKAGE
chdsl
January 7, 2021, 6:41pm
#5
Thanks, I’d do the 2nd option, ignore.
EDIT: It didn’t work.
IgnorePkg = microsoft-edge-dev-bin
Still get,
Searching AUR for updates...
-> Flagged Out Of Date AUR Packages: microsoft-edge-dev-bin
1 Like
Use " IgnorePkg on the package’s config file, and it wont update.
add the above here:
Edit pacman.conf file:
$ sudo vi /etc/pacman.conf
chdsl
January 7, 2021, 6:53pm
#7
^^ I am getting
Searching AUR for updates...
-> Flagged Out Of Date AUR Packages: microsoft-edge-dev-bin
What if I delete /var/lib/pacman/local/microsoft-edge-dev-bin folder?
That will do it, but not in an efficient way. Still it’ll work.
ringo
January 7, 2021, 6:55pm
#9
but why extracting the data?
is kinda frankenstein approach?
ringo
January 7, 2021, 6:58pm
#10
if you need to update ?
just save this PKGBUILD https://hastebin.com/hirudeqoyi.bash
in PKGBUILD and then makepkg -si , it get build and installed.
1 Like
chdsl
January 7, 2021, 6:58pm
#11
You see, it is a web browser, and all web browsers are self-contained. You can place the folder anywhere and click on the executive.
Right now, it is still in the dev stage and AUR dev is not keeping tab. I need to know how the browser is getting on.
chdsl
January 7, 2021, 7:00pm
#13
Do I have to do the makepkg -si, every few days?
ringo
January 7, 2021, 7:02pm
#14
no… only if you adapt the pkgbuild to a new version …
dalto
January 7, 2021, 7:04pm
#15
pacman doesn’t update AUR packages.
Since pacman doesn’t update AUR packages that will only work if your AUR helper reads that config
I don’t know if the browser you are using is self-contained but most web browsers on Arch-based distros are not self-contained.
2 Likes
chdsl
January 7, 2021, 7:05pm
#16
In the script, ```
dev
source=("https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/${_pkgname}_${pkgver}-1_amd64.deb"
It is much faster to download the deb package and extract the data, copy paste.
dalto
January 7, 2021, 7:06pm
#17
If all you want is to save the data, just copy the directory and then uninstall it with pacman
ringo
January 7, 2021, 7:06pm
#18
you can extract te stuf but is not so clean also and a mess at the end, in pkgbuild it creates a packages if you on the first lines the version changes
chdsl
January 7, 2021, 7:08pm
#19
OK, where does the upgrader find what to upgrade? In this case, I use yay
dalto
January 7, 2021, 7:11pm
#20
I guess removing that directory does stop it from getting updated by yay.
I still don’t understand why you would want that. Why not save the data and uninstall?