<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>discord &#8211; Diary of an Emacs tragic</title>
	<atom:link href="https://emacstragic.net/tag/discord/feed/" rel="self" type="application/rss+xml" />
	<link>https://emacstragic.net</link>
	<description>Jason Lewis</description>
	<lastBuildDate>Wed, 29 Nov 2023 00:28:41 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://emacstragic.net/wp-content/uploads/2018/12/cropped-jason-lewis-profile-picture-square-150x150.jpg</url>
	<title>discord &#8211; Diary of an Emacs tragic</title>
	<link>https://emacstragic.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">38469313</site>	<item>
		<title>updating discord .deb one-liner</title>
		<link>https://emacstragic.net/debian-2/updating-discord-deb-one-liner/</link>
					<comments>https://emacstragic.net/debian-2/updating-discord-deb-one-liner/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Tue, 28 Nov 2023 23:11:38 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[discord]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1766</guid>

					<description><![CDATA[Discord will often require you to install an update. When this happens it quits itself and auto downloads the latest .deb, but you end up with lots of sequentially numbered versions of the .deb so it&#8217;s fiddly to find and install the latest one. I came up with this approach to apt install the most [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Discord will often require you to install an update. When this happens it quits itself and auto downloads the latest .deb, but you end up with lots of sequentially numbered versions of the .deb so it&#8217;s fiddly to find and install the latest one.</p>



<p>I came up with this approach to apt install the most recent one:</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>sudo apt install \
   $(find /home/jason/Downloads/ \
       -name &#39;discord*.deb&#39; -type f -printf &#39;%T+ %p\n&#39; | \
      sort -r | head -1 | cut -d&#39; &#39; -f2)</code></pre></div>



<p>or you can build it into a bash function:</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>update-discord()
{
sudo apt install \
  $(find /home/jason/Downloads/ -name &#39;discord*.deb&#39; -type f -printf &#39;%T+ %p\n&#39; | \
  sort -r | head -1 | cut -d&#39; &#39; -f2)
}</code></pre></div>



<p>One could also consider deleting the .deb after successful install. That is an excercise left for the reader</p>



<p><a href="https://apan.org.au/" data-type="link" data-id="https://apan.org.au/">Free Palestine!</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/debian-2/updating-discord-deb-one-liner/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1766</post-id>	</item>
	</channel>
</rss>
