• Efficient Package Dependency Search with aptitude

    From Yassine Chaouche@21:1/5 to All on Wed Apr 24 13:50:01 2024
    This is a multi-part message in MIME format.
    Debian Users,

    In my ongoing mission for precise package management,
    I embarked on a quest to swiftly locate all installed packages dependent on /mysql-server/.
    Swift reconnaissance led me to /aptitude/, our stalwart ally in the Debian arsenal.
    Executing a tactical maneuver akin to this:
    |# aptitude search "~i ~Rmysql-server"|
    ||
    |
    |
    Unveiled a battalion of installed packages,
    seemingly unrelated to mysql-server,
    including /adduser/, /debconf/, and others of varying ranks.

    Harboring suspicions about certain results like /psmisc/,
    I executed a reverse probe using the /apt-cache/ command:
    |# apt-cache depends psmisc|
    ||
    |

    |
    Conclusively, /mysql-server/ did not appear in /psmisc/'s dependency roster. Yet, in the face of this operation at the Debian Vanguard, doubts linger.
    I seek counsel from the esteemed Debian fraternity.
    What subtleties evade our grasp?

    Awaiting your insight and wisdom.
    Best,

    --

    yassine -- sysadm
    +213-779 06 06 23
    http://about.me/ychaouche
    Looking for side gigs.

    <html>
    <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    </head>
    <body>
    Debian Users,<br>
    <br>
    In my ongoing mission for precise package management, <br>
    I embarked on a quest to swiftly locate all installed packages
    dependent on <i>mysql-server</i>. <br>
    Swift reconnaissance led me to <i>aptitude</i>, our stalwart ally
    in the Debian arsenal.<br>
    Executing a tactical maneuver akin to this:
    <div class="dark bg-gray-950 rounded-md border-[0.5px]
    border-token-border-medium">
    <div class="flex items-center relative text-token-text-secondary
    bg-token-main-surface-secondary px-4 py-2 text-xs font-sans
    justify-between rounded-t-md"><span></span><font size="4"><code
    class="!whitespace-pre hljs language-arduino"><span
    class="hljs-meta"># aptitude search <span
    class="hljs-string">"~i ~Rmysql-server"</span></span></code></font><br>
    <code class="!whitespace-pre hljs language-arduino"><span
    class="hljs-meta"><span class="hljs-string"></span></span></code><span></span>
    <div class="p-4 overflow-y-auto"><code class="!whitespace-pre
    hljs language-arduino"><span class="hljs-meta"><span
    class="hljs-string"><br>
    </span></span>
    </code></div>
    </div>
    </div>
    Unveiled a battalion of installed packages, <br>
    seemingly unrelated to mysql-server, <br>
    including <i>adduser</i>, <i>debconf</i>, and others of varying
    ranks.<br>
    <br>
    Harboring suspicions about certain results like <i>psmisc</i>, <br>
    I executed a reverse probe using the <i>apt-cache</i> command:<br>
    <font size="4"><code class="!whitespace-pre hljs language-arduino"><span
    class="hljs-meta"># apt-cache depends psmisc</span></code></font><br>
    <code class="!whitespace-pre hljs language-arduino"><span
    class="hljs-meta"></span></code>
    <div class="flex flex-grow flex-col max-w-full">
    <div data-message-author-role="assistant"
    data-message-id="6e798f6a-ae4f-45ea-b5f7-e741808c6a74"
    dir="auto" class="min-h-[20px] text-message flex flex-col
    items-start gap-3 whitespace-pre-wrap break-words
    [.text-message+&amp;]:mt-5 overflow-x-auto">
    <div class="markdown prose w-full break-words dark:prose-invert
    light">
    <div class="dark bg-gray-950 rounded-md border-[0.5px]
    border-token-border-medium">
    <div class="p-4 overflow-y-auto"><code
    class="!whitespace-pre hljs language-arduino"><span
    class="hljs-meta"><br>
    <br>
    </span>
    </code></div>
    </div>
    Conclusively, <i>mysql-server</i> did not appear in <i>psmisc</i>'s
    dependency roster.<br>
    Yet, in the face of this operation at the Debian Vanguard,
    doubts linger.<br>
    I seek counsel from the esteemed Debian fraternity.<br>
    What subtleties evade our grasp? <br>
    <br>
    Awaiting your insight and wisdom.<br>
    Best,<br>
    <br>
    </div>
    </div>
    </div>
    <div class="mt-1 flex gap-3 empty:hidden">
    <div class="text-gray-400 flex self-end lg:self-center
    items-center justify-center lg:justify-start mt-0 -ml-1 h-7
    gap-[2px] visible"><span class="" data-state="closed"></span></div>
    </div>
    <span class="" data-state="closed"></span><span class=""
    data-state="closed"></span>--
    <pre class="moz-signature" cols="0">yassine -- sysadm
    +213-779 06 06 23
    <a class="moz-txt-link-freetext" href="http://about.me/ychaouche">http://about.me/ychaouche</a>
    Looking for side gigs.</pre>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Ritter@21:1/5 to Yassine Chaouche on Wed Apr 24 14:30:01 2024
    Yassine Chaouche wrote:
    In my ongoing mission for precise package management,
    I embarked on a quest to swiftly locate all installed packages dependent on /mysql-server/.
    Swift reconnaissance led me to /aptitude/, our stalwart ally in the Debian arsenal.
    Executing a tactical maneuver akin to this:
    |# aptitude search "~i ~Rmysql-server"|
    ||
    |
    |
    Unveiled a battalion of installed packages,
    seemingly unrelated to mysql-server,
    including /adduser/, /debconf/, and others of varying ranks.

    Harboring suspicions about certain results like /psmisc/,
    I executed a reverse probe using the /apt-cache/ command:
    |# apt-cache depends psmisc|
    ||
    |

    |
    Conclusively, /mysql-server/ did not appear in /psmisc/'s dependency roster. Yet, in the face of this operation at the Debian Vanguard, doubts linger.
    I seek counsel from the esteemed Debian fraternity.
    What subtleties evade our grasp?

    mysql-server doesn't really exist anymore. Try mariadb-server
    instead.

    Also, I think you have meanings reversed.

    apt-cache depends psmisc

    produces the list of packages that psmisc needs to function.

    apt-cache rdepends psmisc

    produces the list of packages that need psmisc to be installed
    first.

    -dsr-

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Yassine Chaouche@21:1/5 to All on Mon May 27 16:00:01 2024
    Le 4/24/24 à 13:11, Dan Ritter a écrit> Also, I think you have meanings reversed.

    apt-cache depends psmisc

    produces the list of packages that psmisc needs to function.

    apt-cache rdepends psmisc

    produces the list of packages that need psmisc to be installed
    first.

    -dsr-


    Dan,
    Thank you for your prompt and precise response.
    Your expertise has significantly clarified a few misconceptions I had.
    As you accurately noted,
    the misapplication of the apt-cache command enumerated the packages that require psmisc as a prerequisite,
    instead of the dependencies required by psmisc to function.
    Your swift assistance has been invaluable.

    I also could have done the same with aptitude search ~R to list reverse dependencies
    and aptitude search ~D to list dependencies

    Onward and upward.


    --
    yassine -- sysadm
    +213-779 06 06 23
    http://about.me/ychaouche
    Looking for side gigs.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)