You are not logged in.

#1 2020-11-18 06:08:58

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Problem installing apps in / home

Hello
I was a beginner
And when I opened the terminal, it was in / home and many of the software that I installed AUR or from the package, unfortunately, are all at home ...
I wanted to know how to root / move all these application folders together without any problems?


Only progress!

Offline

#2 2020-11-18 06:20:24

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: Problem installing apps in / home

you can move the pkgbuild to another folder, or even delete them, because they are installed elsewhere. so you wont have any problems

Offline

#3 2020-11-18 06:51:45

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: Problem installing apps in / home

ponyrider wrote:

you can move the pkgbuild to another folder, or even delete them, because they are installed elsewhere. so you wont have any problems

Dear friend, please advise more precisely
Do I delete all these folders / home, that is, my programs work without problems?


Only progress!

Offline

#4 2020-11-18 07:55:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: Problem installing apps in / home

And when I opened the terminal, it was in / home and many of the software that I installed AUR or from the package, unfortunately, are all at home ...

Probably not.

1. You're not in "/ home", because
a) blanks are not arbitrary, the path is "/home"
b) you're in /home/babak (I assume), your $HOME path.
2. Because packages are usually not installed into $HOME. What's most likely there are the package sources and the package itself. Seomthing like

ls xcalib
pkg/  src/  xcalib/  PKGBUILD  xcalib-0.9-1-x86_64.pkg.tar.xz

In this case xcalib-0.9-1-x86_64.pkg.tar.xz is the package itself, but when I install it, it puts the binary into /usr/bin/xcalib

These AUR sources and packages are essentially the cache for AUR packages, they are NOT the software you ultimately run.

Offline

#5 2020-11-18 08:20:22

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: Problem installing apps in / home

when you created your user, did you give it a home directory? i suspect if your teminal is opening at /home, that you did not

if the following command doesn't return /home/<USERNAME>/

echo $HOME

you can create it with

usermod -d /home/<USERNAME> <USERNAME> 

please do not just delete all folders in /home

Last edited by ponyrider (2020-11-18 08:22:16)

Offline

#6 2020-11-18 08:27:06

mpan
Member
Registered: 2012-08-01
Posts: 1,641
Website

Re: Problem installing apps in / home

SPYAM: before you harm youself, I suggest understanding what has been done while you invoked makepkg and, then, pacman (either explicitly or using the -i in makepkg). In particula the 2nd and 3rd paragraph in the PKGBUILD Arch Linux Wiki article.

On top of what seth has said:

  • You acquired a PKGBUILD, which is: “A PKGBUILD is a shell script containing the build information required by Arch Linux packages.”

  • You invoked makepkg, which processed PKGBUILD and built the actual package. The package itself is stored in the same directory as the PKGBUILD. This package is not different than those you download while invoking pacman -S & friends.

  • By calling sudo pacman -U package-name.tar.zstd or passing the -i option to makepkg you have instructed pacman to install what is in that package file. It is installed system-wide into package-specific locations.

Offline

#7 2020-11-18 08:31:10

Pena
Member
Registered: 2019-10-04
Posts: 107

Re: Problem installing apps in / home

well i normally do the following:

mkdir programs
cd programs 
mkdir nameoftheprogram
cd nameoftheprogram 
sudo git clone aur.link
sudo chmod 777 aur.dir/
cd aur.dir 
makepkg -ci 

where programs is a directory of your choosing to keep the programs
nameoftheprogram is a name of the directory you choose to store the files that unpack from the AUR pkg
aur.link is the git link of the repository AUR gives you
aur.dir is the cloned directory
you can give other permissions to chmod and safer ones but honestly im lazy and this works 100% of the time

If the makepkg fails because of a dependancy either sudo pacman -S it or youll have to repeat the steps above

i know this could be reduced but since the OP seems new Im posting it in a very clear steady post

Last edited by Pena (2020-11-18 08:31:41)

Offline

#8 2020-11-18 08:45:41

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: Problem installing apps in / home

seth wrote:

And when I opened the terminal, it was in / home and many of the software that I installed AUR or from the package, unfortunately, are all at home ...

Probably not.

1. You're not in "/ home", because
a) blanks are not arbitrary, the path is "/home"
b) you're in /home/babak (I assume), your $HOME path.
2. Because packages are usually not installed into $HOME. What's most likely there are the package sources and the package itself. Seomthing like

ls xcalib
pkg/  src/  xcalib/  PKGBUILD  xcalib-0.9-1-x86_64.pkg.tar.xz

In this case xcalib-0.9-1-x86_64.pkg.tar.xz is the package itself, but when I install it, it puts the binary into /usr/bin/xcalib

These AUR sources and packages are essentially the cache for AUR packages, they are NOT the software you ultimately run.

Not everything is in / HOME, if you want, I will give a photo of this page as well.
Now I delete all the files inside / HOME Do not have a software problem for me?
Because I installed aur packages inside the home!
Because I created a directory for each program there and then I went into that directory or program with the cd command and then I installed it with the makepkg -sri command! Now I will delete these folders, will the aur packages not be deleted from my Linux system ?? Or not a problem?


Only progress!

Offline

#9 2020-11-18 08:49:02

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: Problem installing apps in / home

ponyrider wrote:

when you created your user, did you give it a home directory? i suspect if your teminal is opening at /home, that you did not

if the following command doesn't return /home/<USERNAME>/

echo $HOME

you can create it with

usermod -d /home/<USERNAME> <USERNAME> 

please do not just delete all folders in /home

Dear friend, this is the output of the command you said:
[babak@spy ~]$ echo $HOME
/home/babak
Ah, I have a whole installation folder in Home, I see that I am annoyed, I want them to be in their place regularly, so that they are not in the house like this!
Please tell, whats the story of them big puppys .....


Only progress!

Offline

#10 2020-11-18 08:49:17

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: Problem installing apps in / home

pena, chmod 777 is unecessary, why would you do that?
also makepkg -si ( ---syncdeps --install ) is what i think you mean

Offline

#11 2020-11-18 08:51:33

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: Problem installing apps in / home

Pena wrote:

well i normally do the following:

mkdir programs
cd programs 
mkdir nameoftheprogram
cd nameoftheprogram 
sudo git clone aur.link
sudo chmod 777 aur.dir/
cd aur.dir 
makepkg -ci 

where programs is a directory of your choosing to keep the programs
nameoftheprogram is a name of the directory you choose to store the files that unpack from the AUR pkg
aur.link is the git link of the repository AUR gives you
aur.dir is the cloned directory
you can give other permissions to chmod and safer ones but honestly im lazy and this works 100% of the time

If the makepkg fails because of a dependancy either sudo pacman -S it or youll have to repeat the steps above

i know this could be reduced but since the OP seems new Im posting it in a very clear steady post

Thank you very much
I wish I could create a directory called Application or Programs from the beginning and then click inside those programs !!  sad
But now I want to transfer all this to a folder, thank you for your help


Only progress!

Offline

#12 2020-11-18 08:57:18

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: Problem installing apps in / home

ponyrider wrote:

pena, chmod 777 is unecessary, why would you do that?
also makepkg -si ( ---syncdeps --install ) is what i think you mean

Look at this picture now
These are the things I say I want to see delete, is it a problem? Probably a problem !? If yes, how can I move these to a folder called app in / ???
Image from / Home:
https://8pic.ir/uploads/2_579d8.png


Only progress!

Offline

#13 2020-11-18 09:09:13

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: Problem installing apps in / home

SPYAM: Please don't start doing stupid things

1. if you moved those aur/git repos into folder /app, you would realise that you dont have sufficient permissions to access them. You have a $HOME directory (/home/bakbak) for a reason, and i suggest you use it
2. I told you already that it's fine to remove those directories, but most people simply move them to a folder ( ~/aur or ~/Git or whatever ) so they can update them
3. Obviously you have your ~/Downloads ~/Pictures etc in your $HOME directory, so make sure you dont delete those

Please dont do anything stupid!

Last edited by ponyrider (2020-11-18 09:10:20)

Offline

#14 2020-11-18 09:12:46

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: Problem installing apps in / home

ponyrider wrote:

SPYAM: Please don't start doing stupid things

1. if you moved those aur/git repos into folder /app, you would realise that you dont have sufficient permissions to access them. You have a $HOME directory (/home/bakbak) for a reason, and i suggest you use it
2. I told you already that it's fine to remove those directories, but most people simply move them to a folder ( ~/aur or ~/Git or whatever ) so they can update them
3. Obviously you have your ~/Downloads ~/Pictures etc in your $HOME directory, so make sure you dont delete those

Please dont do anything stupid!

I understand
Except for the third case, which is related to Downloads, Videos, ... delete the problem, do not say that, I care about programs, not these download files and photos and videos and ..!  I delete the rest of the folders Can it be a problem or not ??????? Yes or no ?


Only progress!

Offline

#15 2020-11-18 09:59:18

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: Problem installing apps in / home

mpan wrote:

SPYAM: before you harm youself, I suggest understanding what has been done while you invoked makepkg and, then, pacman (either explicitly or using the -i in makepkg). In particula the 2nd and 3rd paragraph in the PKGBUILD Arch Linux Wiki article.

On top of what seth has said:

  • You acquired a PKGBUILD, which is: “A PKGBUILD is a shell script containing the build information required by Arch Linux packages.”

  • You invoked makepkg, which processed PKGBUILD and built the actual package. The package itself is stored in the same directory as the PKGBUILD. This package is not different than those you download while invoking pacman -S & friends.

  • By calling sudo pacman -U package-name.tar.zstd or passing the -i option to makepkg you have instructed pacman to install what is in that package file. It is installed system-wide into package-specific locations.

How many times have I opened the PKGBUILD file ... it is written that where does this happen? That is, it puts files and folders in this path ?? So where is this pkgdir directory ??
$ {pkgdir}


Only progress!

Offline

#16 2020-11-18 12:19:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: Problem installing apps in / home

Because I installed aur packages inside the home!

Probably not.

What's the content of the xdman directory?

Also, please, again:
"/home" - don't stray spaces when describing paths.
$HOME is a variable and equivalent to "~" - in your case the canonical path is "/home/babak" (as predicted)
"/ HOME" is nothing. The stray blank must not be there and the capiltalization matters.

Please try to be precise when talking about paths.

Offline

#17 2020-11-18 15:04:19

mpan
Member
Registered: 2012-08-01
Posts: 1,641
Website

Re: Problem installing apps in / home

SPYAM wrote:

How many times have I opened the PKGBUILD file ... it is written that where does this happen? That is, it puts files and folders in this path ?? So where is this pkgdir directory ??
$ {pkgdir}

$pkgdir is where files are written by makepkg during packaging process, before everything is packed into the .tar.zstd archive. That directory is stripped from the path in the package. pacman, while installing a package, resolves names with respect to “/” and $pkgdir should be treated as if it refers to “/”. If the package is already installed, you can find the list of files using:

pacman -Ql pkgname

BTW: please stop adding random spaces in places where spaces are important. There is no space between ‘$’ and ‘{’. Neither, as seth has already said twice, is there space between ‘/’ and ‘HOME’. Those are not arbitrary things. That is not natural language.

Offline

#18 2020-11-18 19:21:36

Pena
Member
Registered: 2019-10-04
Posts: 107

Re: Problem installing apps in / home

ponyrider wrote:

pena, chmod 777 is unecessary, why would you do that?
also makepkg -si ( ---syncdeps --install ) is what i think you mean

well in my computer i kinda was lazy so the permissions are all jumbled up and now im too lazy to fix it
since you cant do sudo makepkg without altering the makepkg itself(toggling the warning off)
so as is a kinda begginer only "tutorial" if you will

This thread is getting confusing

Offline

#19 2020-11-18 19:26:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,516
Website

Re: Problem installing apps in / home

No, Pena, that is not a beginner tutorial at all.  It is horrible advice.  The permissions are "all jumbled up" because you are deliberately doing things no one should do.  Do not use sudo for the git clone.  There's no reason for that - but it will screw up the ownership.  There is no need to change permissions if you don't screw up the ownership.  So basically you're telling us your entire system is fubar'ed because you don't have the first clue how to run a linux system - yet you think you can give "beginners tutorials" to make other clueless users end up in as bad of a position you are in.  Don't.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB