Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change installation for RPM and Deb to use yum/dnf and apt. #14

Open
stahnma opened this issue Apr 19, 2024 · 7 comments
Open

Change installation for RPM and Deb to use yum/dnf and apt. #14

stahnma opened this issue Apr 19, 2024 · 7 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@stahnma
Copy link

stahnma commented Apr 19, 2024

We should walk the user through setting up a package repository to install flox (or at least have that as an option) since it would install dependencies and prompt for GPG key importation and such.

Note this could also mean modification of the uninstall procedures.

@tomberek
Copy link

tomberek commented May 3, 2024

Need to explore:

  • Segfault when trying with dnf on CentOS7. Not sure why yet.
    • (edit: I tried to install dnf. And then flox)

@stahnma
Copy link
Author

stahnma commented May 6, 2024

@tomberek CentOS 7 uses yum not dnf, so I'm even more confused.


[0] stahnma@nuc ~> cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[0] stahnma@nuc ~> which dnf
/usr/bin/which: no dnf in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/stahnma/bin:/run/wrappers/bin://home/stahnma/.nix-profile/bin:/etc/profiles/per-user/stahnma/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/bin:/stahnma/bin:/run/wrappers/bin://home/stahnma/.nix-profile/bin:/etc/profiles/per-user/stahnma/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/bin:/usr/local/bin:/usr/local/sbin:/home/stahnma/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/home/stahnma/.gem/ruby/1.8/bin:/home/stahnma/go/bin:/usr/local/go/bin:/home/stahnma/.flox/run/x86_64-linux.default/bin)
[1] stahnma@nuc ~> which yum
/usr/bin/yum
[0] stahnma@nuc ~>

@ghudgins ghudgins added the documentation Improvements or additions to documentation label May 8, 2024
@tomberek
Copy link

Apt on an Ubuntu LiveCD works with dpkg, but fails with

Directory renamed before its status could be extracted

which seems related to:

Perhaps related to being on overlayfs or symbolic links in the tarball.

@tomberek
Copy link

Doing this with keys:

wget -qO - https://downloads.flox.dev/by-env/stable/deb/flox-archive-keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/flox.gpg >/dev/null
sudo add-apt-repository -S "deb https://downloads.flox.dev/by-env/stable/deb/ stable/"
sudo apt update

@tomberek
Copy link

This should work now. These are likely more correct ways to use these tools. These are also more complicated than download and run the file. But they ARE tested! https://github.com/flox/flox-installers/pull/244/files#diff-46ba6075f63da0cb2a6b89e6834c5335ef0d63563a460a4f938242f0771ef654R29-R44

Deb

wget -qO - https://downloads.flox.dev/by-env/stable/deb/flox-archive-keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/flox.gpg >/dev/null
sudo add-apt-repository -S "deb https://downloads.flox.dev/by-env/stable/deb/ stable/"
sudo apt update
sudo apt install flox

Yum

rpm --import https://downloads.flox.dev/by-env/stable/rpm/flox-archive-keyring.asc
yum --repofrompath=flox,https://downloads.flox.dev/by-env/stable/rpm install flox

@stahnma go with something along these lines? thoughts?

@ghudgins
Copy link
Contributor

@stahnma is this something we can move forward on?

@bryanhonof bryanhonof transferred this issue from another repository Sep 9, 2024
@stahnma
Copy link
Author

stahnma commented Sep 25, 2024

#33 is related (or is this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants