News for hackers. Stuff that matters.
Re:Flatpak Is Not the Future by capableweb on Tuesday November 23, 2021 @05:57AM (#29316422)
> You can't do that with a .deb!

Pretty sure you can by doing "dpkg --root=$HOME -i mypackage.deb" or something like that, long time ago I used dpkg, but it should be possible with some flag.

Otherwise I agree, Flatpak is a breath of fresh air!

Re:Flatpak Is Not the Future by jasode on Tuesday November 23, 2021 @07:36AM (#29317074)
>Pretty sure you can by doing "dpkg --root=$HOME -i mypackage.deb" or something like that,

As a sibling comment already noted, using "--root" doesn't always work and a q&a mentions the problems:

https://askubuntu.com/questions/28619/how-do-i-install-an-ap...

https://serverfault.com/questions/23734/is-there-any-way-to-...

Re:Flatpak Is Not the Future by kirbyfan64sos on Tuesday November 23, 2021 @07:22AM (#29316978)
This often doesn't really work in practice on its own at least, since packages tend to hardcode their in installation directories. (You could try using an overlayfs, but at that point it's becoming pretty cumbersome.)
Re:Flatpak Is Not the Future by goohle on Tuesday November 23, 2021 @10:54AM (#29319248)
You can recompile package from source to support installation into `~/.local` (see `man 7 file-hierarchy`), but burden to support this will be on you, including updates, protection from malware and viruses, firewalling, and so on.

For example, rust's cargo can compile and install applications into `~/.local`, but it's pain to keep them up to date, so I prefer to use same tools from my OS (Fedora) distribution repo instead.

Re:Flatpak Is Not the Future by johnchristopher on Tuesday November 23, 2021 @06:46AM (#29316728)
Where does that put the Deb files ?

edit: should have written "where does dpkg put the files of the package ?" or "where does that put the Deb's files ?", sorry.

Re:Flatpak Is Not the Future by capableweb on Tuesday November 23, 2021 @06:49AM (#29316750)
The .deb file should remain where it was when you downloaded it, dpkg just installs the contents of the .deb file.
Re:Flatpak Is Not the Future by johnchristopher on Tuesday November 23, 2021 @06:52AM (#29316769)
Where is the contents of the .deb files put?
Re:Flatpak Is Not the Future by foxfluff on Tuesday November 23, 2021 @08:06AM (#29317305)

       --root=dir
              Set the root directory to directory, which sets the
              installation directory to «dir» and the administrative
              directory to «dir/usr/local/var/lib/dpkg».
Re:Flatpak Is Not the Future by adwn on Tuesday November 23, 2021 @07:06AM (#29316868)
Is there a point you're trying to make, or are you asking for technical information which would be better answered by man dpkg or a quick Internet search?
Re:Flatpak Is Not the Future by johnchristopher on Tuesday November 23, 2021 @07:42AM (#29317116)
I am not trying to make any point, I am genuinely curious where dpkg is going to put those files since its the first time I read you can dot `dpkg --root=$HOME -i mypackage.deb`.

For instance I always do `python3 -m pip install --user wormhole` or `pip install --user wormhole` instead of sudoing my way to permissions hell. Python apps get installed in $HOME/.local/bin, so no cruft for other users.

But stuff installed with deb packages often have hard coded pathways and assumptions of where and how their files are run.

So I think it's fair to ask in reply to someone implying that `dpkg --root=$HOME -i mypackage.deb` is as clean/same as a flatpack behaviour "It installs only in my profile, so another user on the same machine doesn't have access. You can't do that with a .deb!"... It's fair to ask "where do those files in the deb package go ?" because if it works as implied (no pollution of the OS) I am certainly going to start testing installing things that way.