<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=6916&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Better argument handling from apt-cache ?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6916</link>
		<description><![CDATA[The most recent posts in Better argument handling from apt-cache ?.]]></description>
		<lastBuildDate>Tue, 05 Nov 2024 11:07:21 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Better argument handling from apt-cache ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52871#p52871</link>
			<description><![CDATA[<p>mostly for future thread visitors, some links for convenience:</p><p><a href="https://linux.die.net/man/8/apt-cache" rel="nofollow"> https://linux.die.net/man/8/apt-cache</a></p><p><a href="https://manpages.debian.org/buster/apt/apt-cache.8.en.html" rel="nofollow"> https://manpages.debian.org/buster/apt/apt-cache.8.en.html</a></p><p><a href="https://man.archlinux.org/man/apt-cache.8.en" rel="nofollow"> https://man.archlinux.org/man/apt-cache.8.en</a></p><p><a href="https://itsfoss.com/apt-cache-command/" rel="nofollow"> https://itsfoss.com/apt-cache-command/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (stargate-sg1-cheyenne-mtn)]]></author>
			<pubDate>Tue, 05 Nov 2024 11:07:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52871#p52871</guid>
		</item>
		<item>
			<title><![CDATA[Re: Better argument handling from apt-cache ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52870#p52870</link>
			<description><![CDATA[<p>apt-cache and apt search are annoying in their own way that usually searching through them fells tedious to pointless as it takes more time crafting a regex than it may be worth, that is a solid reason as for why i don&#039;t even bother using them directly anymore and simply use apt-ui from <a href="https://github.com/eylles/devuan-scripts" rel="nofollow">https://github.com/eylles/devuan-scripts</a> it uses fzf to fuzzy filter by name AND description through all the packages apt-cache knows of.</p>]]></description>
			<author><![CDATA[dummy@example.com (EDX-0)]]></author>
			<pubDate>Tue, 05 Nov 2024 10:33:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52870#p52870</guid>
		</item>
		<item>
			<title><![CDATA[Better argument handling from apt-cache ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=52869#p52869</link>
			<description><![CDATA[<p>I think there are various idiosyncracies in apt utilities that hinder their use.<br />I must do work(1) before using one tool or one of the tool options to be sure<br />if it uses glob or regex and if it tries to substitute the first with the latter<br />if the first wont be successfull. And of couse in doing that (using<br />a failed glob as a regex) more idiosyncracies creep in.</p><p>Also that is one class of idiosyncracies (argument type handling) .<br />I had (have) issues with not knowing what is exactly the search<br />space of a certain argument . Does it search the package name only<br />or also in other fields ? My experience again warns me to be<br />cautios and investigate further many times.</p><p>I would hope a utility could be more transparent toward<br />the sysadm about what type of argument it accepts and <br />what it does with that.<br />I wonder if such an endeavor would interest anyone. Also<br />i wonder if the language implementing the utilities hinders<br />or not a less frictioned use. </p><p>(1) And by work i hopped it meant just looking up the man page .<br />I find my self doing various tests to understand what happens<br />in each case.</p><p>--------- examples ---------<br />-------------- search space idiosyncracies ------ </p><div class="codebox"><pre><code>$ sudo apt-cache -n search  &#039;.*aa$&#039;      / although i used -n  apt-cache give me in the result package names not matching my regex.</code></pre></div><p>-------------- pattern type handling idiosyncracies ------ </p><p>$ sudo apt-cache&#160; policy&#160; &#039;freeb.*&#039;&#160; &#160; &#160;/ uses regex <br />$ sudo apt-cache&#160; policy&#160; &#039;freeb*&#039;&#160; &#160; &#160; / uses glob<br />$ sudo apt-cache showpkg &#039;*aaa*&#160; &#160; / <br />$ sudo apt-cache showpkg &#039;^aa.*&#039; | grep &#039;^Package&#039;&#160; &#160; &#160; // regex</p><p>$ sudo apt-get install pattern&#160; &#160; &#160; &#160; &#160; / will report in its result if it uses the pattern as a glob or as a regex.&#160; Which i found it helpfull.</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Tue, 05 Nov 2024 09:26:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=52869#p52869</guid>
		</item>
	</channel>
</rss>
