You are not logged in.

#1 2011-03-30 12:40:52

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

How to make some packages not installed when they are?

Hi!
I want to work in my system with some fonts installed and without them, switching between these two modes. I need the system with MS fonts for Web-development and without MS fonts for Web-surfing. And to install and delete them when I need to switch is not an option. So is it possible to somehow mark MS font packages as present or absent and switch this condition (maybe several times per day)?

Offline

#2 2011-03-30 12:50:54

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: How to make some packages not installed when they are?

Weather or not your system uses the fonts has nothing to with the package or package manager. You could write a script to make the fonts in ttf-ms-fonts read-only and than update the font cache.
Something like this (untested) should work:

# Hide:
chmod a-r $(pacman -Qlq ttf-ms-fonts | grep '/usr/share/fonts/TTF/'|xargs)
fc-cache -f '/usr/share/fonts/TTF/'

# Show
chmod a+r $(pacman -Qlq ttf-ms-fonts | grep '/usr/share/fonts/TTF/'|xargs)
fc-cache -f '/usr/share/fonts/TTF/'

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

Board footer

Powered by FluxBB