You are not logged in.

#1 2013-06-09 21:50:11

w201
Member
Registered: 2012-10-04
Posts: 243

[SOLVED] Binaries move to /usr/bin - Few Questions

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

#2 2013-06-09 21:56:28

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

You have to insert the non-official repo, subsituting "<repo>" in that paclist command, if you use any.

Offline

#3 2013-06-09 21:57:08

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,383
Website

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

You need to substitute a repo for the <repo> placeholder (if you have any added to your pacman.conf).


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#4 2013-06-09 22:18:26

w201
Member
Registered: 2012-10-04
Posts: 243

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

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

#5 2013-06-09 22:21:38

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,133

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

multilib is not a 3rd party repo. That command is for things like archlinuxfr, heftig, repo-ck, etc.

Offline

#6 2013-06-09 22:24:56

w201
Member
Registered: 2012-10-04
Posts: 243

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

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

#7 2013-06-09 22:26:17

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,133

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

Yes. Anything from the official repos, including multilib, will be updated automatically.

Offline

#8 2013-06-09 22:30:08

w201
Member
Registered: 2012-10-04
Posts: 243

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

Awesome. Thanks guys!

Offline

#9 2013-06-09 22:43:25

w201
Member
Registered: 2012-10-04
Posts: 243

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

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

#10 2013-06-09 22:46:10

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,220
Website

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

No, ls -l / should show that those are links to /usr/bin, and you do need them.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Online

#11 2013-06-09 22:56:10

w201
Member
Registered: 2012-10-04
Posts: 243

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

Trilby wrote:

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

#12 2013-06-09 22:57:37

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,133

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

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

#13 2013-06-09 23:06:58

w201
Member
Registered: 2012-10-04
Posts: 243

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

Got it. Thanks again Scimmia.

Offline

#14 2013-06-09 23:50:09

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,675

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

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/

How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#15 2013-06-10 00:36:07

w201
Member
Registered: 2012-10-04
Posts: 243

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

cfr wrote:

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

#16 2013-06-10 00:43:42

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,675

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

Ah, right. That is indeed very different. Compare what you get if you do

file /bin

for example.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#17 2013-06-10 00:46:56

w201
Member
Registered: 2012-10-04
Posts: 243

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

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

#18 2013-06-10 01:05:33

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,675

Re: [SOLVED] Binaries move to /usr/bin - Few Questions

Quite. The first looks at what the symbolic link points to. The second looks at the symbolic link itself.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

Board footer

Powered by FluxBB