Skip to main content
Topic: Can't install nerd font (Read 908 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Can't install nerd font

Hi,

Sorry if this is a stupid question/the wrong way to do things, but I would like to install a nerd-font (specifically fantasque/fantasque mono), which I managed to find in the Arch Extra repository. (See: https://archlinux.org/groups/any/nerd-fonts/) However, it appears that there may be a packaging error or something, because I can't install these packages (just like this Arch forum post); instead a set of packages called ttf-nerd-fonts-symbols (and -common and -mono) is available.

Should this be happening? How do I get my font? I tried to install it specifically by the package name given in the nerd-fonts group, but to no avail.

Thanks in advance.

Re: Can't install nerd font

Reply #1
Artix does not contain all the packages that Arch does in it's repo's.
You can add the Arch repo's to Artix.
https://wiki.artixlinux.org/Main/Repositories#Arch_repositories

Or you can just install that package like this
Code: [Select]
sudo pacman -U https://archlinux.org/packages/extra/any/ttf-fantasque-nerd/download/
The package will never get updated (except manually) if you do it this way. But it's just a font so it doesn't really matter.

Re: Can't install nerd font

Reply #2
Not a "packaging error" but a case where Arch has a package that Artix didn't. Not every Arch package is represented in Artix's repos, like gripped mentioned. We're not exactly trolling around Arch's repos looking for packages to import just because. Nothing currently in our repos depend on these and nobody's asked for them (from what I've seen) until now.

I've added nerd-fonts to galaxy (See: https://packages.artixlinux.org/groups/any/nerd-fonts/). It will arrive on your mirror in time.

Re: Can't install nerd font

Reply #3
@gripped Sorry for not making this clear, but I have already added the extra repository and it still won't install. There must be some strange conflict.

On testing your alternative method of sideloading the package, it asked if I wanted to import a PGP key, which was fine, but it says the package is invalid or corrupted, and it won't install. Perhaps there was an error with the key, or all those files are really corrupted, because I tried a few just to make sure it wasn't only that one.

Thanks for your help anyway.

And @corysanin, I did not mean to imply an error on the part of Artix; I fully understand that it is not practical to repackage everything on the Arch repos. I meant that there must be an error on the Arch end of things, hence the Arch forum post I found complaining about a logical error, whereby a package group (nerd-fonts) shared its name with a package (also called nerd-fonts) resulting in a conflict.

UPDATE: I was able to get it to install by manually downloading it and installing it from the local file. Thanks everyone.

Re: Can't install nerd font

Reply #4
In that case, I suspect you may have misconfigured Arch repos as I'm able to install for example ttf-ubuntu-nerd. Have you successfully installed any other Arch packages?

Re: Can't install nerd font

Reply #5
No, I configured them specifically to get this package. Now that I think about it, all that I did was add the [extra] and [multilib] bits to the pacman.conf and configured the Arch mirror list. I probably forgot something, didn't I?

Re: Can't install nerd font

Reply #6
No, I configured them specifically to get this package. Now that I think about it, all that I did was add the [extra] and [multilib] bits to the pacman.conf and configured the Arch mirror list. I probably forgot something, didn't I?
Did you install the artix-archlinux-support package? Check out https://wiki.artixlinux.org/Main/Repositories#Arch_repositories

 

Re: Can't install nerd font

Reply #7
I hadn't when I made the post, but I have now and it still doesn't work. Tried installing some other packages that are only on extra (like lf and yazi) but neither of them showed up using a pacman search. Not sure what's going on.

Re: Can't install nerd font

Reply #8
I hadn't when I made the post, but I have now and it still doesn't work. Tried installing some other packages that are only on extra (like lf and yazi) but neither of them showed up using a pacman search. Not sure what's going on.
Does any mirror uncommented in your mirrorlist-arch? Did you try another mirror? Post you pacman -Syu output.

Re: Can't install nerd font

Reply #9
I hadn't when I made the post, but I have now and it still doesn't work. Tried installing some other packages that are only on extra (like lf and yazi) but neither of them showed up using a pacman search. Not sure what's going on.
Does any mirror uncommented in your mirrorlist-arch? Did you try another mirror? Post you pacman -Syu output.

Code: [Select]
sudo pacman -Syu
:: Synchronising package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 lib32 is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do

Re: Can't install nerd font

Reply #10
Hi,

Sorry if this is a stupid question/the wrong way to do things, but I would like to install a nerd-font (specifically fantasque/fantasque mono), which I managed to find in the Arch Extra repository. (See: https://archlinux.org/groups/any/nerd-fonts/) However, it appears that there may be a packaging error or something, because I can't install these packages (just like this Arch forum post); instead a set of packages called ttf-nerd-fonts-symbols (and -common and -mono) is available.

Should this be happening? How do I get my font? I tried to install it specifically by the package name given in the nerd-fonts group, but to no avail.

Thanks in advance.
Hi,
You don't need to use pacman to install a nerd font. Just download the ttf file of the font you want from the Nerd fonts website and then copy and paste it to /usr/local/share/fonts. This way you can have system wide access to the nerd font that you want. You can also check the Manual installation section in the following page for more information:
Fonts - ArchWiki
Most people don't use Linux because they find it difficult to use. I find Linux easy to use but don't daily drive it because my favorite distro doesn't work well on my existing hardware. :-(