You are not logged in.
Hi All-
I just learned about this recent change to the filesystem. Wondering if this page outlines the correct steps for moving binaries to /usr/bin:
https://www.archlinux.org/news/binaries … ervention/
When I ran the second command (paclist...) on that page, I got a syntax error:
bash: syntax error near unexpected token `|'
Other than that, none of the commands listed on the page give me any results, so I'm assuming that means there are no conflicts and it's safe to run the final three commands to upgrade the system. Any advice appreciated.
Thanks!
Last edited by w201 (2013-06-09 22:35:32)
Offline
You have to insert the non-official repo, subsituting "<repo>" in that paclist command, if you use any.
Offline
You need to substitute a repo for the <repo> placeholder (if you have any added to your pacman.conf).
Offline
Oops, my bad. Ok, well I ran the command with multilib this time and I get a bunch of files, which according my understanding I have to move these files manually to /usr/bin? Is that really the easiest way to do this? I think I see about 100 files.
Offline
multilib is not a 3rd party repo. That command is for things like archlinuxfr, heftig, repo-ck, etc.
Offline
Sorry, I didn't know that. Basically I have core, extra, community and multilib as my repos. So I can safely ignore all the files that were printed when I ran the command?
Last edited by w201 (2013-06-09 22:26:00)
Offline
Yes. Anything from the official repos, including multilib, will be updated automatically.
Offline
Awesome. Thanks guys!
Offline
Forgot to ask-- since all files from /bin /sbin and /usr/sbin were merged to /usr/bin do we need to manually delete the other directories? They're still on my filesystem even after the update. Thanks
Offline
No, ls -l / should show that those are links to /usr/bin, and you do need them.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
No, ls -l / should show that those are links to /usr/bin, and you do need them.
Yeah I see that every file in there is linked. Do you know if eventually they plan on doing away with /bin and /sbin? I thought they were migrating all the files to /usr/bin and removing the other directories to make it easier for the developers.
Offline
All files are migrated and /bin, /sbin/.and /usr/sbin don't exist as directories anymore. They are simply symlinks for compatibility.
Last edited by Scimmia (2013-06-09 22:57:55)
Offline
Got it. Thanks again Scimmia.
Offline
What do you mean when you say that every file in there is linked?
/bin, /sbin and /usr/sbin should themselves be links. They should not contain links.
lrwxrwxrwx 1 root root 7 Mai 31 19:40 /bin -> usr/bin/
lrwxrwxrwx 1 root root 7 Mai 31 19:40 /sbin -> usr/bin/
lrwxrwxrwx 1 root root 3 Mai 31 19:40 /usr/sbin -> bin/
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
What do you mean when you say that every file in there is linked?
/bin, /sbin and /usr/sbin should themselves be links. They should not contain links.
lrwxrwxrwx 1 root root 7 Mai 31 19:40 /bin -> usr/bin/ lrwxrwxrwx 1 root root 7 Mai 31 19:40 /sbin -> usr/bin/ lrwxrwxrwx 1 root root 3 Mai 31 19:40 /usr/sbin -> bin/
Hi- Hmmm, I think this requires an explanation... I see that /bin /sbin/ and /usr/sbin directories are symbolic links, but what I meant is that if you cd into /bin for example, and do "file filename" on any file in there, it'll show that it's "dynamically linked"... I mistook this for meaning a symbolic link.
Example:
└──╼ file mev
mev: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=24cd2c473bdaa7d951bbf9e14b2792646b6b4932, stripped
Last edited by w201 (2013-06-10 00:37:18)
Offline
Ah, right. That is indeed very different. Compare what you get if you do
file /bin
for example.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
well, if you do "file bin/" you get bin:/ directory
but if you do "file bin" you get bin: symbolic link to `usr/bin'
:-)
Offline
Quite. The first looks at what the symbolic link points to. The second looks at the symbolic link itself.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline