Skip to content

Delete old files from the repository #17

@teluq-pbrideau

Description

@teluq-pbrideau

Currently, the mirror does not delete what is absent in upstream repository.

I had a problem with synchronisation with upstream rocky9 repository

:~# yum update                                                                                                                         
[...]
===============================================================================================================================================================
 Package                                 Architecture             Version                                                    Repository                   Size 
===============================================================================================================================================================
[...]
Upgrading:                                                                                                                                                     
 apache-commons-cli                      noarch                   1.5.0-4.module+el9.1.0+13170+43ecddfd                      appstream                    75 k 
[...]
                                                                                                                                                               
Transaction Summary                                                                                                                                            
===============================================================================================================================================================
Install   3 Packages                                                                                                                                           
Upgrade  12 Packages                                                                                                                                           
Remove    3 Packages                                                                                                                                           
                                                                                                                                                               
Total size: 88 M                                                                                                                                               
Is this ok [y/N]: y                                                                                                                                            
Downloading Packages:                                                                                                                                          
[...]                                                                                                   
Running transaction check                                                                                                                                      
No available modular metadata for modular package 'apache-commons-cli-1.5.0-4.module+el9.1.0+13170+43ecddfd.noarch', it cannot be installed on the system      
[...]

I had to run manually reposync [...] --delete, then rerun the createrepo to fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions