# Where exactly does YAY install packages?

**URL:** <https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378>\
**Category:** Applications\
**Created:** [October 31, 2020, 12:52pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378 "2020-10-31T12:52:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![OrangeBoy](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/o/50afbb/32.png) [@OrangeBoy](https://forum.endeavouros.com/u/OrangeBoy)\
**Post date:** [October 31, 2020, 12:52pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/1 "2020-10-31T12:52:21Z")

</div>

I understand that if you build a package from source you need to go into its directory before you can run it. For example I installed sagemath in a directory named sage-9.2. To run sage you need to type ./sage, but this only works if I cd into that directory. I installed both extcalc and miktex using yay but they don’t even show up in my system, it’s like I didn’t even install them? I can’t run miktexsetup. I ran locate -e miktex and nothing shows up (but if I run yay -Qs miktex it says I have it installed).

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [October 31, 2020, 12:54pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/2 "2020-10-31T12:54:39Z")

</div>

yay just builds a normal package and then installs it using alpm/pacman. Once a package is installed by yay it can be located like any other package.

If you want to see a list of the files installed by a package, you can use:

```auto
yay -Ql packagename

```

For that matter, you could use:

```auto
pacman -Ql packagename

```

> [@OrangeBoy](#):
>
> To run sage you need to type ./sage, but this only works if I cd into that directory.

You probably just need to type `sage`

The command `./sage` literally means rune the binary `sage` from the current directory.

When used in a file path, the `.` means “the current directory”

> [@OrangeBoy](#):
>
> I ran locate -e miktex and nothing shows up (but if I run yay -Qs miktex it says I have it installed).

It looks like it creates a menu entry called miktex-console. You could look at that and see what the name of the binary it is running is.

---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/139011_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [November 1, 2020, 11:02pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/3 "2020-11-01T23:02:34Z")

</div>

in addition you will find each builded package from yay under `~/.cache/yay` and you can set /etc/makepkg.conf to store builded packages in a folder of your choice:  
`PKGDEST=`

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [November 1, 2020, 11:21pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/4 "2020-11-01T23:21:58Z")

</div>

> [@OrangeBoy](#):
>
> I installed both extcalc and miktex using yay but they don’t even show up in my system

Also, [https://wiki.archlinux.org/index.php/Frequently\_asked\_questions#I\_just\_installed\_Package\_X.\_How\_do\_I\_start\_it](https://wiki.archlinux.org/index.php/Frequently_asked_questions#I_just_installed_Package_X._How_do_I_start_it)?

---

<div class="post-metadata">

**Author:** ![freebird54](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/freebird54/32/83106_2.png) [@freebird54](https://forum.endeavouros.com/u/freebird54)\
**Post date:** [November 2, 2020, 11:26am UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/5 "2020-11-02T11:26:06Z")

</div>

The post referenced above has a ‘proper’ way to find out. Some of us lesser mortals try our best guess from the terminal:

```auto
which programname

```

using your guess from above - such as **which extcalc** or **which miktex**. That way, if it returns an answer, you will know one way to run it - and where it is located! A typical result would be _ **/usr/bin/programname** _…

---

<div class="post-metadata">

**Author:** ![OrangeBoy](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/o/50afbb/32.png) [@OrangeBoy](https://forum.endeavouros.com/u/OrangeBoy)\
**Post date:** [November 2, 2020, 1:35pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/6 "2020-11-02T13:35:30Z")

</div>

> You probably just need to type `sage`

No, if I type `sage` in my home directory then nothing happens. Although, I forgot to mention that I compiled sagemath from source, not from the official repos, so that’s probably the reason `sage` doesn’t work.

You were right, there was an entry named miktex-console in my menu; I went through the installation process and updated it but alas, my system could not recognize the `pdflatex` command. I uninstalled miktex and installed `texlive-most` (I understand that this attitude is not really in the spirit of linux but I’ve been tackling linux-related problems for quite some days now and I think I need to take a break).

Also is there a limit to how many replies in a standard time frame I can give in this forum? It would be nice to reply to all people in one sitting.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [November 2, 2020, 1:45pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/7 "2020-11-02T13:45:35Z")

</div>

> [@OrangeBoy](#):
>
> No, if I type `sage` in my home directory then nothing happens. Although, I forgot to mention that I compiled sagemath from source

The title of your topic is “Where exactly does YAY install packages?” So I thought we were talking about packages built using `yay`. If you manually build a package from source then your options are a little different:

- Add it to your path somehow. Lets of ways to do this but common ways include putting a symlink somewhere in your path or actually adding the directory the program is in to your path.
- Specify the full path when you execute the program like this: `/path/to/sage`
- cd into the directory and type `./sage`

> [@OrangeBoy](#):
>
> It would be nice to reply to all people in one sitting.

You don’t need to use multiple replies. You can quote multiple message in single reply. When you are editing a reply. Highlight the text you want to reply to and click quote. That will be appended into your open reply.

---

<div class="post-metadata">

**Author:** ![OrangeBoy](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/o/50afbb/32.png) [@OrangeBoy](https://forum.endeavouros.com/u/OrangeBoy)\
**Post date:** [November 2, 2020, 3:12pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/8 "2020-11-02T15:12:01Z")

</div>

> [@dalto](#):
>
> The title of your topic is “Where exactly does YAY install packages?” So I thought we were talking about packages built using `yay`.

Yes sorry I forgot that I had compiled sage from source at the time of making this topic. Sorry. Thanks for the help.

> [@dalto](#):
>
> yay just builds a normal package and then installs it using alpm/pacman.

What does alpm mean in this context? It doesn’t stand for ‘advanced link power management’, does it?

> [@joekamprad](#):
>
> in addition you will find each builded package from yay under `~/.cache/yay` and you can set /etc/makepkg.conf to store builded packages in a folder of your choice:  
> `PKGDEST=`

Thank you.

> [@jonathon](#):
>
> Also, [https://wiki.archlinux.org/index.php/Frequently\_asked\_questions#I\_just\_installed\_Package\_X.\_How\_do\_I\_start\_it](https://wiki.archlinux.org/index.php/Frequently_asked_questions#I_just_installed_Package_X._How_do_I_start_it)

Thanks.

> [@freebird54](#):
>
> The post referenced above has a ‘proper’ way to find out. Some of us lesser mortals try our best guess from the terminal:
> 
> ```auto
> which programname
> 
> ```

Haha then I guess I should choose the way of a mere mortal!

---

<div class="post-metadata">

**Author:** ![anon31687413](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@anon31687413](https://forum.endeavouros.com/u/anon31687413)\
**Post date:** [November 2, 2020, 3:13pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/9 "2020-11-02T15:13:54Z")

</div>

> [@OrangeBoy](#):
>
> What does alpm mean in this context?

libalpm (Arch Linux Package Management) is pacman’s library.

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [November 2, 2020, 5:00pm UTC](https://forum.endeavouros.com/t/where-exactly-does-yay-install-packages/9378/10 "2020-11-02T17:00:50Z")

</div>

> [@OrangeBoy](#):
>
> I guess I should choose the way of a mere mortal!

Until you ascend, at least. 😉
