You are not logged in.
Pages: 1
I want to add my own personal repository to pacman.conf so that I can install packages from it directly getting binaries from different sources . Pacman.conf has a section for it how to add it
#Your local repository
[my_local_repo]
SigLevel = Optional TrustedOnly
Server = file:///home/xyz/$repo/$archmy question is will i create a directory in my home directory and name it as
[my_local_repo] and put binaries there to install them with pacman? I am getting confused ( sorry for being lame here because I have never tried this thing in past ) with the /// slashes in this line #Server = file:///home/xyz/$repo/$arch Normally home is presented as ~/ so why these /// slashes?
Last edited by saleem (2024-09-26 20:49:51)
Offline
Please fix your code tag typo(s) there, and while you're at it you may want to give a more specific title to the thread.
The "Server" option requires a full uri. The uri for a file on the local machine starts with file:// just as one accessable via http starts with http://, these are protocol specifiers. So the uri of the directory file /home/username/myrepo is file:///home/username/myrepo. Tilde expansion (~ becoming your user's home directory) is a feature of shells interpreters, it is not an actual directory.
To create the directory in your home directory, you should be following the wiki instructions on creating a local repository. Feel free to ask questions about parts of that documentation if you are confused, but do not expect us to read it to you here. EDIT: to clarify potentially ambigous tone here, the question you had on the use of "file://" was a good one to ask: it's something you found in the instructions that you didn't understand. In contrast "how do I set up the directory" is not so good as there are instructions specifically for this on the wiki already.
Last edited by Trilby (2024-09-26 20:06:24)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Please fix your code tag typo(s) there, and while you're at it you may want to give a more specific title to the thread.
The "Server" option requires a full uri. The uri for a file on the local machine starts with file:// just as one accessable via http starts with http://, these are protocol specifiers. So the uri of the directory file /home/username/myrepo is file:///home/username/myrepo. Tilde expansion (~ becoming your user's home directory) is a feature of shells interpreters, it is not an actual directory.
To create the directory in your home directory, you should be following the wiki instructions on creating a local repository. Feel free to ask questions about parts of that documentation if you are confused, but do not expect us to read it to you here. EDIT: to clarify potentially ambigous tone here, the question you had on the use of "file://" was a good one to ask: it's something you found in the instructions that you didn't understand. In contrast "how do I set up the directory" is not so good as there are instructions specifically for this on the wiki already.
Thanks for the help towards right directions.Sorry for the typos , something to do with my poor vision , miss mistakes , have corrected the tile to be more specific to the question .
Offline
Pages: 1