Skip to content

[Linux] Error when trying to install package using 'sudo pkgm install' #1218

@tclementdev

Description

@tclementdev

On Fedora Silverblue, I installed pkgx:

> curl https://pkgx.sh | sh
> ls /usr/local/bin
mash pkgm pkgx

Then tried to install a package inside /usr/local/bin using pkgm:

> sudo pkgm install fish
sudo: unable to execute /root/.pkgx/pkgx.sh/v2.7.0/bin/pkgx: Permission denied

It seems like it is trying to install things in the context of the root user, rather than installing things in /usr/local/bin.

Not using sudo works:

> pkgm install fish
> which fish
~/.local/bin/fish

Based on the documentation, I expected sudo pkgm install fish to properly install the package in /usr/local/bin. Am I missing something here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions