You are not logged in.

#1 2019-06-15 10:30:04

vitalka
Member
Registered: 2015-09-05
Posts: 11

move /opt to /usr/opt and install pkg from aur

Hi!

I move /opt to /usr/opt, after I create symlink:

ln -s /usr/opt /

ls -lah
lrwxrwxrwx   1 root    root       8 Jun 15 12:54 opt -> /usr/opt

And now I want install pkg from AUR:

pacman -U pkgname

error: failed to commit transaction (conflicting files)
pkgname: /opt exists in filesystem
Errors occurred, no packages were upgraded.

How can I fix that error?

Best regards,
\me/

Last edited by vitalka (2019-06-15 10:33:59)

Offline

#2 2019-06-15 10:34:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,730
Website

Re: move /opt to /usr/opt and install pkg from aur

Firstly, why?  To answer your question: pacman will not install to a symlink.  You need to use a bind mount.

Offline

#3 2019-06-15 11:04:39

vitalka
Member
Registered: 2015-09-05
Posts: 11

Re: move /opt to /usr/opt and install pkg from aur

My /opt directory located in root partittion 283M  228M   36M  87% / and for /usr I created other partition 20G  8.7G   10G  47% /usr.
If I install pkg from AUR, pkg save files in /opt and I get error:

error: Partition / too full: 39769 blocks needed, 35983 blocks free
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)

"You need to use a bind mount." - can you give me example or howto?

Best regards,
\me/

Last edited by vitalka (2019-06-15 11:05:12)

Offline

#4 2019-06-15 11:06:23

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,730
Website

Re: move /opt to /usr/opt and install pkg from aur

vitalka wrote:

"You need to use a bind mount." - can you give me example or howto?

http://lmgtfy.com/?q=linux+bind+mount

Offline

#5 2019-06-15 11:16:55

vitalka
Member
Registered: 2015-09-05
Posts: 11

Re: move /opt to /usr/opt and install pkg from aur

Дякую!

Offline

#6 2019-06-15 11:48:06

vitalka
Member
Registered: 2015-09-05
Posts: 11

Re: move /opt to /usr/opt and install pkg from aur

Everything is working. Thank you very much! smile

Offline

#7 2019-06-15 13:09:26

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: move /opt to /usr/opt and install pkg from aur

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB