Bug 2237646 - unable to remove language specific installed default-fonts package
Summary: unable to remove language specific installed default-fonts package
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: langpacks
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Parag Nemade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-06 07:21 UTC by Parag Nemade
Modified: 2024-05-27 13:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1146 0 None None None 2024-03-20 06:55:54 UTC

Description Parag Nemade 2023-09-06 07:21:14 UTC
On a Marathi Fedora 39 installation, I see all the default-fonts packages installed by default. But what if I don't need any other language's default-fonts package.

e.g. I want to remove default-fonts-km but then its removing all the default-fonts packages

[test@fedora:~1$ sudo dnf remove default-fonts-km
Dependencies resolved.
================================================================================
 Package                                 Arch   Version         Repo       Size
================================================================================
Removing:
 default-fonts-km                        noarch 4.0-8.fc39      @fedora   342  
Removing dependent packages:
 default-fonts-other-sans                noarch 4.0-8.fc39      @fedora   391  
Removing unused dependencies:
 default-fonts-am                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-ar                        noarch 4.0-8.fc39      @anaconda 344  
 default-fonts-as                        noarch 4.0-8.fc39      @anaconda 348  
 default-fonts-ast                       noarch 4.0-8.fc39      @anaconda 349  
 default-fonts-be                        noarch 4.0-8.fc39      @anaconda 352  
 default-fonts-bg                        noarch 4.0-8.fc39      @anaconda 350  
 default-fonts-bn                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-bo                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-br                        noarch 4.0-8.fc39      @anaconda 344  
 default-fonts-chr                       noarch 4.0-8.fc39      @anaconda 349  
 default-fonts-dv                        noarch 4.0-8.fc39      @anaconda 344  
 default-fonts-dz                        noarch 4.0-8.fc39      @anaconda 350  
 default-fonts-el                        noarch 4.0-8.fc39      @anaconda 342  
 default-fonts-eo                        noarch 4.0-8.fc39      @anaconda 350  
 default-fonts-eu                        noarch 4.0-8.fc39      @anaconda 344  
 default-fonts-fa                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-gu                        noarch 4.0-8.fc39      @anaconda 348  
 default-fonts-he                        noarch 4.0-8.fc39      @anaconda 344  
 default-fonts-hi                        noarch 4.0-8.fc39      @anaconda 342  
 default-fonts-hy                        noarch 4.0-8.fc39      @anaconda 348  
 default-fonts-ia                        noarch 4.0-8.fc39      @anaconda 354  
 default-fonts-iu                        noarch 4.0-8.fc39      @anaconda 350  
 default-fonts-ka                        noarch 4.0-8.fc39      @anaconda 348  
 default-fonts-kn                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-ku                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-lo                        noarch 4.0-8.fc39      @anaconda 338  
 default-fonts-mai                       noarch 4.0-8.fc39      @anaconda 349  
 default-fonts-ml                        noarch 4.0-8.fc39      @anaconda 350  
 default-fonts-mr                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-my                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-nb                        noarch 4.0-8.fc39      @anaconda 366  
 default-fonts-ne                        noarch 4.0-8.fc39      @anaconda 344  
 default-fonts-nn                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-nr                        noarch 4.0-8.fc39      @anaconda 364  
 default-fonts-nso                       noarch 4.0-8.fc39      @anaconda 361  
 default-fonts-or                        noarch 4.0-8.fc39      @anaconda 342  
 default-fonts-pa                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-ru                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-si                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-ss                        noarch 4.0-8.fc39      @anaconda 342  
 default-fonts-ta                        noarch 4.0-8.fc39      @anaconda 342  
 default-fonts-te                        noarch 4.0-8.fc39      @anaconda 344  
 default-fonts-th                        noarch 4.0-8.fc39      @anaconda 340  
 default-fonts-tn                        noarch 4.0-8.fc39      @anaconda 344  
 default-fonts-ts                        noarch 4.0-8.fc39      @anaconda 344  
 default-fonts-uk                        noarch 4.0-8.fc39      @anaconda 350  
 default-fonts-ur                        noarch 4.0-8.fc39      @anaconda 340  
 default-fonts-ve                        noarch 4.0-8.fc39      @anaconda 342  
 default-fonts-vi                        noarch 4.0-8.fc39      @anaconda 352  
 default-fonts-xh                        noarch 4.0-8.fc39      @anaconda 342  
 default-fonts-yi                        noarch 4.0-8.fc39      @anaconda 346  
 default-fonts-zu                        noarch 4.0-8.fc39      @anaconda 340  
 google-noto-sans-arabic-vf-fonts        noarch 20230801-2.fc39 @anaconda 606 k
 google-noto-sans-armenian-vf-fonts      noarch 20230801-2.fc39 @anaconda  35 k
 google-noto-sans-bengali-vf-fonts       noarch 20230801-2.fc39 @anaconda 434 k
 google-noto-sans-canadian-aboriginal-vf-fonts
                                         noarch 20230801-2.fc39 @anaconda 100 k
 google-noto-sans-cherokee-vf-fonts      noarch 20230801-2.fc39 @anaconda 133 k
 google-noto-sans-devanagari-vf-fonts    noarch 20230801-2.fc39 @anaconda 254 k
 google-noto-sans-ethiopic-vf-fonts      noarch 20230801-2.fc39 @anaconda 506 k
 google-noto-sans-georgian-vf-fonts      noarch 20230801-2.fc39 @anaconda 145 k
 google-noto-sans-gujarati-vf-fonts      noarch 20230801-2.fc39 @anaconda 204 k
 google-noto-sans-gurmukhi-vf-fonts      noarch 20230801-2.fc39 @anaconda  48 k
 google-noto-sans-hebrew-vf-fonts        noarch 20230801-2.fc39 @anaconda  54 k
 google-noto-sans-kannada-vf-fonts       noarch 20230801-2.fc39 @anaconda 172 k
 google-noto-sans-khmer-vf-fonts         noarch 20230801-2.fc39 @anaconda 268 k
 google-noto-sans-lao-vf-fonts           noarch 20230801-2.fc39 @anaconda  35 k
 google-noto-sans-oriya-vf-fonts         noarch 20230801-2.fc39 @anaconda 193 k
 google-noto-sans-sinhala-vf-fonts       noarch 20230801-2.fc39 @anaconda 355 k
 google-noto-sans-tamil-vf-fonts         noarch 20230801-2.fc39 @anaconda  78 k
 google-noto-sans-telugu-vf-fonts        noarch 20230801-2.fc39 @anaconda 230 k
 google-noto-sans-thaana-vf-fonts        noarch 20230801-2.fc39 @anaconda  32 k
 google-noto-sans-thai-vf-fonts          noarch 20230801-2.fc39 @anaconda  77 k
 jomolhari-fonts                         noarch 0.003-39.fc39   @anaconda 2.2 M
 madan-fonts                             noarch 2.000-36.fc39   @anaconda 246 k
 paktype-naskh-basic-fonts               noarch 6.0-8.fc39      @anaconda 464 k
 rit-meera-new-fonts                     noarch 1.4.1-3.fc39    @anaconda 184 k
 sil-nuosu-fonts                         noarch 2.200-9.fc39    @anaconda 267 k
 sil-padauk-fonts                        noarch 3.003-13.fc39   @anaconda 1.6 M
 vazirmatn-vf-fonts                      noarch 33.003-4.fc39   @anaconda 285 k

Transaction Summary
================================================================================
Remove  81 Packages

Freed space: 9.1 M
Is this ok [y/N]: 

I am not sure with the current implementation of Default font handling Change, its possible to make changes to remove individual language fonts packages.


Reproducible: Always

Actual Results:  
Removing all default-fonts-* packages

Expected Results:  
Should remove only specific default-fonts-? package

Comment 1 Jens Petersen 2023-09-08 10:01:13 UTC
You can do:

$ sudo dnf remove google-noto-sans-khmer-vf-fonts --noautoremove

but yea - removal is one of the trickier aspects of the new metapkgs.

Comment 2 Jens Petersen 2024-03-19 03:07:11 UTC
(In reply to Jens Petersen from comment #1)
> $ sudo dnf remove google-noto-sans-khmer-vf-fonts --noautoremove

We could at least document this in the README file (suggested by Akira)

Comment 3 Parag Nemade 2024-03-19 03:19:58 UTC
(In reply to Jens Petersen from comment #2)
> (In reply to Jens Petersen from comment #1)
> > $ sudo dnf remove google-noto-sans-khmer-vf-fonts --noautoremove
> 
> We could at least document this in the README file (suggested by Akira)

You mean add README via SPEC file and install it as doc file?

Comment 4 Jens Petersen 2024-03-20 06:54:33 UTC
Okay probably thinking more it may not make much sense perhaps?  because.. where should the README live? hmm
Well even documenting in the git README file would be a step forward I suppose.

So I guess we better document it in the Fedora wiki or docs somewhere.

(Even a "one-line" blog post could be "better than nothing"...)


Note You need to log in before you can comment on or make changes to this bug.