MSYS2-pacman icon indicating copy to clipboard operation
MSYS2-pacman copied to clipboard

Tried to relocate 'the most core' utils to RAMdisk with error: failed to update mingw32 (unable to lock database) error: failed to update mingw64...

Open abdulbadii opened this issue 5 years ago • 0 comments

Any idea how to correctly relocate some 'very frequently used' utilities to Ramdisk ? I tried most of them successfully but cannot use pacman,

$ pacman -Syu
:: Synchronizing package databases...
error: failed to update mingw32 (unable to lock database)
error: failed to update mingw64 (unable to lock database)
error: failed to update msys (unable to lock database)
error: failed to synchronize all databases

Z is a RAM disk and I did create windows desktop shortcut Z:\CoreUtil\usr\bin\mintty.exe --dir /usr/bin /usr/bin/bash -ac 'MSYSTEM=MINGW64;exec /usr/bin/bash -l' and relocate some to it :

bash.exe
chmod.exe
cp.exe
curl.exe
cut.exe
cygpath.exe
cygwin-console-helper.exe
file.exe
find.exe
getopt.exe
gpg.exe
grep.exe
head.exe
hexdump.exe
hostname.exe
ldd.exe
ln.exe
ls.exe
mintty.exe
mkdir.exe
msys-2.0.dll
msys-assuan-0.dll
msys-bz2-1.dll
msys-gcc_s-seh-1.dll
msys-gcrypt-20.dll
msys-gpg-error-0.dll
msys-iconv-2.dll
msys-intl-8.dll
msys-magic-1.dll
msys-ncursesw6.dll
msys-readline7.dll
msys-sqlite3-0.dll
msys-z.dll
mv.exe
od.exe
rm.exe
sed.exe
sort.exe
tee.exe
time.exe
tr.exe
tzset.exe
xz.exe

after change all paths in /etc/profile to point back to original MSYS installation, and pacman setting:

$ cat Z:\RAMCoreUtil\etc\pacman.conf
...
[options]
RootDir     = /e/msys/
DBPath      = /e/msys/var/lib/pacman/
CacheDir    = /e/msys/var/cache/pacman/pkg/
LogFile     = /e/msys/var/log/pacman.log
GPGDir      = /e/msys/etc/pacman.d/gnupg/
...
[mingw32]
Include = /e/msys/etc/pacman.d/mirrorlist.mingw32
[mingw64]
Include = /e/msys/etc/pacman.d/mirrorlist.mingw64
[msys]
Include = /e/msys/etc/pacman.d/mirrorlist.msys 

How to solve the stumbling-block

error: failed to update mingw32 (unable to lock database)
error: failed to update mingw64 (unable to lock database)

Any useful idea will be very appreciated and thanks much in advance!

abdulbadii avatar Mar 09 '19 03:03 abdulbadii