I've been doing some setups using openSUSE Leap 15.6 recently for $work. Here are the zypper packages I used to get the cpan utility running cleanly (you may not need all of these).

Checking my old notes, this worked the same for openSUSE Leap 15.4. Presumably also good for Leap 15.5; and possibly for (some) versions prior to Leap 15.4.

Here's the perl & cpan info (cf. Re^2: cpan: Terminal does not support AddHistory. posted earlier):

kenc@vdesktop35 ~/tmp $ perl -v | head -2 | tail -1 This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-li +nux-thread-multi kenc@vdesktop35 ~/tmp $ cpan cpan shell -- CPAN exploration and modules installation (v2.38) Enter 'h' for help. cpan[1]> o conf pushy_https pushy_https [0] Type 'o conf' to view all configuration items cpan[2]> o conf urllist urllist 0 [https://cpan.org/] 1 [https://cpan.metacpan.org/] Type 'o conf' to view all configuration items cpan[3]> q Lockfile removed. kenc@vdesktop35 ~/tmp

— Ken


In reply to Re: cpan: Terminal does not support AddHistory. [openSUSE] by kcott
in thread cpan: Terminal does not support AddHistory. by kcott

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.