Installing Microsoft Fonts in Fedora Template

Hallo! I am new to Qubes OS. I need to install Microsoft Fonts to open and save Word docs in Fedora. I tried to install msttcore-fonts-installer in a template but failed because i guess because the firewall restrictions. I tried with “sudo rpm –i —httpproxy 127.0.0.1:8082 msttcore-fonts-installer.rpm” Did not work. Is there a safe way or do i need to disable the firewall? I read the instructions here but there is no answer other than reduce template strictness? [qubes-users] Install ttf-mscorefonts-installer on debian 11

Try using environment variables, like it is described in the docs:

export HTTP_PROXY=http://127.0.0.1:8082 http_proxy=$HTTP_PROXY \
         HTTPS_PROXY=$HTTP_PROXY https_proxy=$HTTPS_PROXY \
         ALL_PROXY=$HTTP_PROXY all_proxy=$ALL_PROXY \
         NO_PROXY=127.0.0.1 no_proxy=$NO_PROXY

It seems like your command is failing because with rpm you might need to specify port separately, from man rpm:

       --httpproxy HOST
              The  host HOST will be used as a proxy server for all http and ftp trans‐
              fers.  This option may also be specified by configuring the macro %_http‐
              proxy.

       --httpport PORT
              The TCP PORT number to use for the http  connection  on  the  proxy  http
              server instead of the default port.  This option may also be specified by
              configuring the macro %_httpport.
1 Like

How do i try environment variables? How do i do that technical wise? I have knowledge about linux but not that advanced.

This did not work: sudo rpm -i --httpproxy 127.0.0.1 --httpport 8082 msttcore-fonts-installer-2.6-1.noarch.rpm

Follow the link to documentation, it is explained there

I was able to install the fonts however i reduced the security of the template when changing the Networking value from default to sys-firewall, then ran sudo rpm -i fontinstaller.rpm
The installer fetches the fonts online.

Is there another way to install the fonts that doesn’t reduce the security/isolation of the template?