You are not logged in.
Pages: 1
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
you can move the pkgbuild to another folder, or even delete them, because they are installed elsewhere. so you wont have any problems
Offline
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
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.xzIn 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
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 $HOMEyou 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
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
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
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 likels xcalib pkg/ src/ xcalib/ PKGBUILD xcalib-0.9-1-x86_64.pkg.tar.xzIn 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
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 $HOMEyou 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
pena, chmod 777 is unecessary, why would you do that?
also makepkg -si ( ---syncdeps --install ) is what i think you mean
Offline
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 -ciwhere 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 timeIf 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 !! ![]()
But now I want to transfer all this to a folder, thank you for your help
Only progress!
Offline
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
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
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 thosePlease 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
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
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
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 pkgnameBTW: 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
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
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
Pages: 1