Skip to content

u/ccc1386

In this archive from Feb 2016 to Oct 2019

36
posts
153
comments
1
media
713
score

Top posts

Why do package managers like pip and npm on Arch install to /usr/bin instead of /usr/local/bin?

Was doing some system maintenance on my machines tonight and noticed for the first time that on Arch, pip and npm install to /usr/bin, but on Ubuntu they install to /usr/local/bin. Is there any reason that the Arch package maintainers for pip/npm would choose this configuration over what Ubuntu has...

66 points33 comments
Open on Reddit

Top comments

A key part you missed

man install | grep \\-D
   -D     create  all  leading  components of DEST except the last, or all

To demonstrate, observe the output of the following

$ touch foo && cp foo bar/baz/quxx
cp: failed to access 'bar/baz/quxx': Not a directory

$ touch foo && install -D foo bar/baz/quxx

cp requires that intermediate directories exist while install can get around that with the -D flag.

23 points

Pacman cannot install packages from the AUR.

Here's a relevant wiki to get you started: https://wiki.archlinux.org/index.php/Arch_User_Repository

You might be thinking, why is it so much work to install packages from the AUR? So here's another wiki on ways to make the entire process easier: https://wiki.archlinux.org/index.php/AUR_helpers

I think it's safe to say that most people have an AUR helper installed on their system. So I would suggest first installing an AUR helper on your system and then using the AUR helper to install atom-editor. You will need to manually install the AUR helper though, so that will be the most difficult part of the process. If you need any more details, post here and I'll help you through it.

11 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.