You are not logged in.

#1 2023-03-15 10:01:52

probackup-nl
Member
From: Delft
Registered: 2017-11-15
Posts: 93
Website

[solved] How to completely remove and reinstall perl using pacman?

The kernel 6.2.1 installed box has a perl 5.36 environment. Perl modules were installed via (1) pacman (2) cpan (3) custom make scripts (>4 hours).
For the purpose of package building, assp dependency checking, installation recipe writing and testing, I'd wish to remove perl completely and reinstall perl from scratch using pacman.
Searching bbs for "pacman how to reinstall perl" or "pacman reinstall perl" doesn't bring me a clue.

I'd think to remove perl, perl its pacman installed modules, cpan and custom perl modules, using:

# pacman -Rc perl
# rm -r ~/.cpan ~/.cpanm /usr/share/perl5 /usr/lib/perl5 /usr/bin/site_perl

Then I'd like to reinstall perl and upgrade cpan using:

# pacman -S perl perl-module-build perl-libwww perl-lwp-protocol-https cpanminus ... other perl modules ...
# cpan CPAN

Afterwards verify the installed packages and reinstall packages with failures:

# pacman -Qk 2>/dev/null | grep -v ' 0 missing files'
glib2: 731 total files, 1 missing file
# pacman -S glib2

Any thoughts on this approach (except for the Bad Idea™ of mixing pacman perl-* with cpan)?
What can be done better?

Last edited by probackup-nl (2024-01-19 15:18:50)

Offline

#2 2023-03-15 12:28:34

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [solved] How to completely remove and reinstall perl using pacman?

The use of 2 and 3 are the problem, you have to clean that up by hand.

edit: I suggest not using cpan directly, if you want the perl modules system wide, use makepkg/pacman, if you want them in $HOME, there are tools for that too.

Last edited by Mr.Elendig (2023-03-15 12:31:34)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB