cockpit-project / cockpit-files

A Featureful File Browser for Cockpit (Modernized and tested version of https://github.com/45Drives/cockpit-navigator)
GNU Lesser General Public License v2.1
28 stars 24 forks source link

One-liner to install release package on Debian 12 #635

Open ComputaBloke opened 2 weeks ago

ComputaBloke commented 2 weeks ago

I have been hanging out for this to hit general release. Thanks for your efforts. I noticed the release isn't in the Cockpit 'Applications' (appstream) list yet, nor on most distribution repos until it can be backported.

I wanted to share a quick install script (without all the Make/developer dependencies).

wget https://github.com/cockpit-project/cockpit-files/releases/latest/download/cockpit-files-2.tar.xz && \
  tar -xf cockpit-files-2.tar.xz cockpit-files/dist && \
  mv cockpit-files/dist /usr/share/cockpit/files && \
  rm -r cockpit-files && \
  rm cockpit-files-2.tar.xz

Note: the '-2' I expect might be best removed in future releases

This works for me on Debian GNU/Linux 12 (bookworm) where rest of cockpit-project was installed via standard apt install ...

If you're able to add this to the README.md I'm sure others will find it useful. Thanks again

jelly commented 2 weeks ago

Thanks for the issue, in general we don't want to recommend putting files into package manager owned directories such as /usr/share/cockpit. We do recommend using make devel-install as this installs to ~/.local/share/cockpit so easily reverted by a normal user.

For more detail see https://cockpit-project.org/guide/latest/packages.html#package-layout

martinpitt commented 2 weeks ago

Also, please don't run wget as root. You can trim this a bit to use pipes, like curl https://... | sudo tar ... and please install into /usr/local/share/cockpit to avoid conflicts with the package manager.

I just sent https://bugs.debian.org/1076001 to start the inclusion of cockpit-files into Debian. Thanks for the nudge :wink:

emaayan commented 1 week ago

Also, please don't run wget as root. You can trim this a bit to use pipes, like curl https://... | sudo tar ... and please install into /usr/local/share/cockpit to avoid conflicts with the package manager.

I just sent bugs.debian.org/1076001 to start the inclusion of cockpit-files into Debian. Thanks for the nudge 😉

so this would be the reason i can't use apt install cockpit-files on ubuntu 24 too?

martinpitt commented 4 days ago

Just for the record, it's been sitting in the NEW queue for a week.