<?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=2951&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Apt aliases]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2951</link>
		<description><![CDATA[The most recent posts in Apt aliases.]]></description>
		<lastBuildDate>Tue, 16 Jul 2019 12:21:40 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17115#p17115</link>
			<description><![CDATA[<div class="quotebox"><cite>ILUXA wrote:</cite><blockquote><div><div class="quotebox"><cite>Panopticon wrote:</cite><blockquote><div><p>just posting some interesting information.</p></div></blockquote></div><p>I don&#039;t think that <a href="https://aboutthebsds.wordpress.com/2013/02/02/freebsds-pkgng-a-broken-fork-of-debians-apt-get/" rel="nofollow">part from article</a> dated 2 February 2013, which was written by schizophrenic on his blog, may be called &quot;interesting information&quot;. Only he and his psychotherapist know why he think that FreeBSD package manager is somehow related to Debian apt package manager...</p><div class="quotebox"><cite>Panopticon wrote:</cite><blockquote><div><p>I have experience with more than one package manager - apt, apk, pacman,xbps, pkgsrc, pkgng,rpm, etc.</p></div></blockquote></div><p>Good for you. Me too, BTW. But IMO it is much more handy to use the same commands everywhere, because you don&#039;t need to always remember what OS you&#039;re using, especially if you&#039;re using two machines at the same time, like me.</p></div></blockquote></div><p>You are quite right, no evidence to back the &quot;interesting&quot; claim up for sure. Would be interesting to see the particular mailing lists from 2011 he speaks of. Anyhow old news.</p><p>Welcome to devuan <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Panopticon)]]></author>
			<pubDate>Tue, 16 Jul 2019 12:21:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17115#p17115</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17113#p17113</link>
			<description><![CDATA[<div class="quotebox"><cite>Panopticon wrote:</cite><blockquote><div><p>just posting some interesting information.</p></div></blockquote></div><p>I don&#039;t think that <a href="https://aboutthebsds.wordpress.com/2013/02/02/freebsds-pkgng-a-broken-fork-of-debians-apt-get/" rel="nofollow">part from article</a> dated 2 February 2013, which was written by schizophrenic on his blog, may be called &quot;interesting information&quot;. Only he and his psychotherapist know why he think that FreeBSD package manager is somehow related to Debian apt package manager...</p><div class="quotebox"><cite>Panopticon wrote:</cite><blockquote><div><p>I have experience with more than one package manager - apt, apk, pacman,xbps, pkgsrc, pkgng,rpm, etc.</p></div></blockquote></div><p>Good for you. Me too, BTW. But IMO it is much more handy to use the same commands everywhere, because you don&#039;t need to always remember what OS you&#039;re using, especially if you&#039;re using two machines at the same time, like me.</p>]]></description>
			<author><![CDATA[dummy@example.com (ILUXA)]]></author>
			<pubDate>Tue, 16 Jul 2019 09:55:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17113#p17113</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17081#p17081</link>
			<description><![CDATA[<div class="quotebox"><cite>ILUXA wrote:</cite><blockquote><div><div class="quotebox"><blockquote><div><p>Finally by comparing the source code of FreeBSD’s pkgng to Debian’s apt-get, people would find that pkgng is literally pieces of code ripped from apt-get with little to no modification. Indeed discussions on the mailing list in late 2011 show that FreeBSD “developers” including Baptiste Daroussin took apt-get and removed the GPL license together with code they could not understand and renamed the result pkgng. They did this as they were incapable of writing a package manager from scratch. This means pkgng has legal implications for FreeBSD as it is illegal to remove the GPL from a piece of software without the author’s permission. It also shows how blatant the BSD projects can be when fighting against the freedom achieved by Richard Stallman, the FSF, Linus Torvalds and GNU/Linux.</p></div></blockquote></div><p>This is complete delirium, no comments.</p><div class="quotebox"><blockquote><div><p>apt-mark manual</p></div></blockquote></div><p>FreeBSD equivalent is <em>pkg set -A 0</em>, or <em>pkg set -A 1</em> to mark package as automatically installed.<br />But after I&#039;ve configured pkg aliases I&#039;m using <em>pkg M package</em> or <em>pkg A package</em>.<br />But I don&#039;t understand, why you&#039;re trying to write something about FreeBSD to me,<br />what I&#039;ve posted, is just a simple script to use it with Debian based distros, there is really<br />no real connection between it and FreeBSD, I use some of same letters on my FBSD installation but that&#039;s all.<br />You&#039;re barking up the wrong tree.</p></div></blockquote></div><p>I think what you are doing is confusing.</p><p>I have experience with more than one package manager - apt, apk, pacman,xbps, pkgsrc, pkgng,rpm, etc. Each one is unique in its own use, if you are using debian/devuan then apt should be memorized and so forth. Just my opinion, not barking up the any tree by the way, just posting some interesting information.</p>]]></description>
			<author><![CDATA[dummy@example.com (Panopticon)]]></author>
			<pubDate>Mon, 15 Jul 2019 12:49:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17081#p17081</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17063#p17063</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Finally by comparing the source code of FreeBSD’s pkgng to Debian’s apt-get, people would find that pkgng is literally pieces of code ripped from apt-get with little to no modification. Indeed discussions on the mailing list in late 2011 show that FreeBSD “developers” including Baptiste Daroussin took apt-get and removed the GPL license together with code they could not understand and renamed the result pkgng. They did this as they were incapable of writing a package manager from scratch. This means pkgng has legal implications for FreeBSD as it is illegal to remove the GPL from a piece of software without the author’s permission. It also shows how blatant the BSD projects can be when fighting against the freedom achieved by Richard Stallman, the FSF, Linus Torvalds and GNU/Linux.</p></div></blockquote></div><p>This is complete delirium, no comments.</p><div class="quotebox"><blockquote><div><p>apt-mark manual</p></div></blockquote></div><p>FreeBSD equivalent is <em>pkg set -A 0</em>, or <em>pkg set -A 1</em> to mark package as automatically installed.<br />But after I&#039;ve configured pkg aliases I&#039;m using <em>pkg M package</em> or <em>pkg A package</em>.<br />But I don&#039;t understand, why you&#039;re trying to write something about FreeBSD to me,<br />what I&#039;ve posted, is just a simple script to use it with Debian based distros, there is really<br />no real connection between it and FreeBSD, I use some of same letters on my FBSD installation but that&#039;s all.<br />You&#039;re barking up the wrong tree.</p>]]></description>
			<author><![CDATA[dummy@example.com (ILUXA)]]></author>
			<pubDate>Sun, 14 Jul 2019 18:21:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17063#p17063</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17060#p17060</link>
			<description><![CDATA[<p>Another interesting tidbit.</p><p><a href="https://aboutthebsds.wordpress.com/2013/02/02/freebsds-pkgng-a-broken-fork-of-debians-apt-get/" rel="nofollow">https://aboutthebsds.wordpress.com/2013 … s-apt-get/</a></p><div class="quotebox"><blockquote><div><p>Finally by comparing the source code of FreeBSD’s pkgng to Debian’s apt-get, people would find that pkgng is literally pieces of code ripped from apt-get with little to no modification. Indeed discussions on the mailing list in late 2011 show that FreeBSD “developers” including Baptiste Daroussin took apt-get and removed the GPL license together with code they could not understand and renamed the result pkgng. They did this as they were incapable of writing a package manager from scratch. This means pkgng has legal implications for FreeBSD as it is illegal to remove the GPL from a piece of software without the author’s permission. It also shows how blatant the BSD projects can be when fighting against the freedom achieved by Richard Stallman, the FSF, Linus Torvalds and GNU/Linux.</p></div></blockquote></div><p>This is probably partly due to how much freebsd is very much dependent on the linux environment to stay relevant, my experience using freebsd was met with loading up boot commands related to linux to get things working. BSD folks like to bag gnu/linux but at the same time borrow so much from it.</p>]]></description>
			<author><![CDATA[dummy@example.com (Panopticon)]]></author>
			<pubDate>Sun, 14 Jul 2019 15:54:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17060#p17060</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17059#p17059</link>
			<description><![CDATA[<p>Do you think maybe this is subject to error in the future? When you have been trained to think of how Freebsd pkg works you may give a command you unintentionally did not want to give. I suppose then it would be down to memory retention. How closely linked is Freebsd pkg to debians apt?</p><p>Case in point: pkg add -M </p><div class="codebox"><pre><code>-M, --accept-missing
		Force the installation of the package with missing dependen-
		cies.</code></pre></div><p><a href="https://www.freebsd.org/cgi/man.cgi?query=pkg-add&amp;sektion=8&amp;apropos=0&amp;manpath=FreeBSD+12.0-RELEASE+and+Ports" rel="nofollow">https://www.freebsd.org/cgi/man.cgi?que … +and+Ports</a></p><p>M) apt-mark manual ${@:2} ;;</p><p><a href="https://manpages.debian.org/stretch/apt/apt-mark.8.en.html" rel="nofollow">https://manpages.debian.org/stretch/apt … .8.en.html</a></p><div class="quotebox"><blockquote><div><p>manual<br />manual is used to mark a package as being manually installed, which will prevent the package from being automatically removed if no other packages depend on it.</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (Panopticon)]]></author>
			<pubDate>Sun, 14 Jul 2019 15:26:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17059#p17059</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17027#p17027</link>
			<description><![CDATA[<p>BTW, I also use completion with my zsh shell, <br />I have <em>compdef pkg=&#039;apt&#039;</em> in <a href="https://forums.freebsd.org/goto/post?id=361921" rel="nofollow">my zshrc file</a>,<br />so apt completion work with my pkg script as well.<br /><span class="postimg"><img src="https://i.imgur.com/RjMJzDU.png" alt="RjMJzDU.png" /></span></p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>But then you have to remember what all the letter options do <img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p></div></blockquote></div><p>No need to remember it, because I already use same letters for pkg command with my FreeBSD installation.<br />Anyway, IMO it is much more easy to remember one letter, than to remember whole new commands with its arguments...</p>]]></description>
			<author><![CDATA[dummy@example.com (ILUXA)]]></author>
			<pubDate>Sat, 13 Jul 2019 19:27:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17027#p17027</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17013#p17013</link>
			<description><![CDATA[<div class="quotebox"><cite>Panopticon wrote:</cite><blockquote><div><p>Then there is history search via .inputrc up down arrow search in vi mode.</p></div></blockquote></div><div class="codebox"><pre><code># up/dn history search
bind &#039;&quot;\e[A&quot;:history-search-backward&#039;
bind &#039;&quot;\e[B&quot;:history-search-forward&#039;</code></pre></div><p>...&quot;Works for me.&quot;™</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Sat, 13 Jul 2019 13:29:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17013#p17013</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17011#p17011</link>
			<description><![CDATA[<p>@ yeti, only if you have completion setup nicely. Then there is history search via .inputrc up down arrow search in vi mode.</p>]]></description>
			<author><![CDATA[dummy@example.com (Panopticon)]]></author>
			<pubDate>Sat, 13 Jul 2019 12:04:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17011#p17011</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17009#p17009</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Note also that the <span class="bbc">apt</span> command consolidates the abilities of <span class="bbc">apt-get</span> &amp; <span class="bbc">apt-cache</span> and provides a more &quot;user-friendly&quot; interface, it is now recommended over <span class="bbc">apt-get</span> for Debian buster.</p></div></blockquote></div><p> And in contrast to home grown spells, there is the magic <span class="bbc">TAB</span> key for the common package management commands&#039; options. I think this is hard to beat with aliases.</p>]]></description>
			<author><![CDATA[dummy@example.com (yeti)]]></author>
			<pubDate>Sat, 13 Jul 2019 09:04:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17009#p17009</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17006#p17006</link>
			<description><![CDATA[<div class="quotebox"><cite>ILUXA wrote:</cite><blockquote><div><p>So I don&#039;t need to remember all that apt-* crap anymore <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p></div></blockquote></div><p>But then you have to remember what all the letter options do <img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>The APT commands have lots of options because they are so powerful and can do so much, not sure why you&#039;re complaining about that.</p><p>Note also that the <span class="bbc">apt</span> command consolidates the abilities of <span class="bbc">apt-get</span> &amp; <span class="bbc">apt-cache</span> and provides a more &quot;user-friendly&quot; interface, it is now recommended over <span class="bbc">apt-get</span> for Debian buster.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 13 Jul 2019 08:04:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17006#p17006</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16994#p16994</link>
			<description><![CDATA[<p>FWIW, this is what i got in my .bash_aliases</p><p>alias adu=&quot;sudo apt-get update &amp;&amp; sudo apt-get dist-upgrade&quot;<br />alias agi=&quot;sudo apt-get install&quot;<br />alias as=&quot;apt-cache search&quot;<br />alias ash=&quot;apt-cache show&quot;</p><p>I have sudo configured with the NOPASSWD option</p>]]></description>
			<author><![CDATA[dummy@example.com (macondo)]]></author>
			<pubDate>Fri, 12 Jul 2019 23:16:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16994#p16994</guid>
		</item>
		<item>
			<title><![CDATA[Re: Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16986#p16986</link>
			<description><![CDATA[<p>So what is a user case scenario for this?</p><p>alias pkg -d =&quot;apt-get depends&quot;</p><p>One could just make bash/sh aliases in a similar fashion and make it less of a typing burden with something like &quot;apd&quot; for apt-get depends and so on.</p><p>I think you are just shitting all over the apt package manager for shits and giggles really.</p>]]></description>
			<author><![CDATA[dummy@example.com (Panopticon)]]></author>
			<pubDate>Fri, 12 Jul 2019 14:51:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16986#p16986</guid>
		</item>
		<item>
			<title><![CDATA[Apt aliases]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=16980#p16980</link>
			<description><![CDATA[<p>What I always missed in Debian based distros is good and usable package manager,<br />while now situation is a little bit better with newer apt versions, but IMO<br />it is still very annoying to use a lot of apt-* commands to do simple tasks:<br />apt-cache, apt-file, apt-mark, apt-src, apt-rdepends, apt-get, apt-go-to-sleep…<br />What a madness! My second favourite OS after Devuan is FreeBSD <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />In FreeBSD there is a file, called pkg.conf, it is possible to configure aliases<br />for FreeBSD pkg package manager using this file, and it is very useful,<br />because it&#039;s very easy and handy to install a package just with <em># pkg in package</em>,<br />or to remove it with <em># pkg r package</em>, or to search it with <em># pkg s package</em>...<br />So I tried to create a simple script to use it with apt-* commands, without need<br />to remember all animals in apt-* zoo. Maybe it will be useful for someone like me <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />I called it &quot;pkg&quot; and put it to /usr/local/bin, here it is:</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh
FIRST=$1; shift
case $FIRST in
	A) apt-mark auto $@ ;;
	M) apt-mark manual $@ ;;
	a) apt-get autoremove --purge $@ ;;
	r) apt-get purge $@ ;;
	in) apt-get install $@ ;;
	I) aptitude install $@ ;;
	re) apt-get install --reinstall $@ ;;
	ai) apt-get install $@ &amp;&amp; apt-mark auto $@ ;;
	s) apt-cache search $@ ;;
	se) apt-cache search --names-only $@ ;;
	S) apt-cache madison $@ ;;
	f) apt-file find $@ ;;
	sh) apt-file show $@ ;;
	d) apt depends $@ ;;
	rd) apt rdepends $@ ;;
	l) dpkg -L $@ ;;
	w) dpkg -S $@ ;;
	u) aptitude safe-upgrade $@ ;;
	U) aptitude full-upgrade $@ ;;
	up) apt update ;;
	bd) aptitude build-dep $@ ;;
	i) [ $1 ] &amp;&amp; apt-cache show $@ || dpkg -l ;;
	v) [ $1 ] &amp;&amp; apt-show-versions $@ || apt-show-versions | grep -v &#039;not installed&#039; ;;
	c) dpkg-repack $@ ;;
	add) dpkg -i $@ || apt install -f;;
	src) apt-src install $@ ;;
	cp) git clone $@ ;;
	key) apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $@ ;;
	rkey) apt-key del $@ ;;
	keys) apt-key list ;;
	*) apt $FIRST $@ ;;
esac</code></pre></div><p>Then I executed <em># chmod +x /usr/local/bin/pkg</em>. So now I&#039;m able to use<br />just pkg commands, to manipulate my packages on my Devuan systems,<br />these aliases are very close to my FreeBSD pkg.conf configuration.<br />So now I&#039;m able to use <em>pkg in package</em> to install a package, <em>pkg r package</em><br />to remove it, <em>pkg A package</em> to mark a package as being automatically installed, etc.<br />If alias won&#039;t be found in this script, all pkg commands will be added to <em>apt</em>,<br />so it is possible to use <em>apt</em> commands with <em>pkg</em> as well, like <em>pkg download package</em>,<br />or even <em>pkg install --reinstall package</em>, etc.<br />So I don&#039;t need to remember all that apt-* crap anymore <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (ILUXA)]]></author>
			<pubDate>Fri, 12 Jul 2019 09:21:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=16980#p16980</guid>
		</item>
	</channel>
</rss>
