Closed asmacdo closed 1 year ago
For this need two ways
yum install datalad
ar
and tar
directly (without dpkg -x
support).@jwodder, since we are not building .rpm's for fedora and I am not sure if any conversion (via smth like alien
I used in debian) would work, for now let's
dpkg-query
present (I don't think we should try to identify the system), crash with some more informative exception e.g. , "Since not running a Debian-based system (no dpkg-query), you can only install available .deb package in a specific path, so provide --path option".@asmacdo -- you are welcome to try (redo your invocation, but add --path some-path
option) -- I think it should work.
@yarikoptic I believe you mean --install-dir
, not --path
.
correct! I forgot that we used already --path
--install-dir
for some path to .dmg image
the script I use to install any wanted version within ~/git-annexes
:
#!/bin/bash
set -eu
v="${1:-}"
annexes=$HOME/git-annexes
if [ -n "$v" ]; then
~/proj/datalad/datalad-installer/src/datalad_installer.py -E $annexes/$v.env git-annex=$v -m datalad/git-annex:release --install-dir $annexes/$v
else
# install current one, deduce version and rename accordingly
if [ ! -e ~/git-annexes/current ]; then
~/proj/datalad/datalad-installer/src/datalad_installer.py -E $annexes/current.env git-annex -m datalad/git-annex --install-dir $annexes/current
fi
v=$(source $annexes/current.env; git annex version | head -n 1 | sed -e 's,.*: *,,g' -e 's,-[0-9]~.*,,g')
if [ -e $annexes/$v ] ; then
echo "$annexes/$v already exists!" >&2
exit 1
fi
mv "$annexes/current" "$annexes/$v"
mv "$annexes/current.env" "$annexes/$v.env"
sed -i -e "s,current,$v,g" "$annexes/$v.env"
fi
echo "I: use source $annexes/$v.env"
and it should work on fedora in principle
Looks like it will not work on any non-debian distro if it needs dpkg?
$ datalad-installer git-annex -m datalad/git-annex:release