<?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>APT Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/apt/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 21 Jun 2018 20:40:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>APT: The Ubuntu package manager</title>
		<link>https://www.osradar.com/apt-the-ubuntu-package-manager/</link>
					<comments>https://www.osradar.com/apt-the-ubuntu-package-manager/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Wed, 20 Jun 2018 14:38:01 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Package]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=4061</guid>

					<description><![CDATA[<p>APT stands for Advanced Packaging Tool, a well-known package manager used by such important and popular distributions as Debian and Ubuntu. Its main function is to manage, thanks to some implementations of libraries built in C++, to handle everything related to the packages inside a GNU/LINUX system. Its main use is to Install and Uninstall [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/apt-the-ubuntu-package-manager/">APT: The Ubuntu package manager</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>APT stands for Advanced Packaging Tool, a well-known package manager used by such important and popular distributions as <a href="https://www.debian.org/">Debian</a> and <a href="https://www.ubuntu.com/">Ubuntu</a>. Its main function is to manage, thanks to some implementations of libraries built in C++, to handle everything related to the packages inside a GNU/LINUX system. Its main use is <strong>to Install and Uninstall these packages</strong>. It is a &#8220;program&#8221; that is mostly used from the terminal, but there are front-ends like Synaptic allowing for ease of use as if it were a much easier tool to use. It was created by the Debian project, so the first implementations were made to handle only.DEB packages but was later ported to handle.RPM packages as well.</p>
<p>It is a &#8220;program&#8221; that is mostly used from the terminal, but there are front-ends like Synaptic allowing for ease of use as if it were a much easier tool to use. It was created by the Debian project, so the first implementations were made to handle only.DEB packages but was later ported to handle.RPM packages as well.</p>
<h2>What is a GNU/LINUX package?</h2>
<p>The Debian package system carries a large amount of information associated with each package for ensure that it integrates neatly and easily into the system. The most salient <strong>feature is the system of dependencies</strong>. The dependency system allows individual programs to make use of shared elements such as function libraries (libraries). APT attempts to resolve dependency issues by providing a set of automated algorithms to help you select the packages to install</p>
<figure id="attachment_4075" aria-describedby="caption-attachment-4075" style="width: 1024px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4075" src="https://www.osradar.com/wp-content/uploads/2018/06/pa.png" alt=".DEB packages" width="1024" height="1024" srcset="https://www.osradar.com/wp-content/uploads/2018/06/pa.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/pa-150x150.png 150w, https://www.osradar.com/wp-content/uploads/2018/06/pa-300x300.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/pa-768x768.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/pa-696x696.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/pa-420x420.png 420w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption id="caption-attachment-4075" class="wp-caption-text">.DEB packages</figcaption></figure>
<p>A software package is a compressed file and with an established structure that allows to be treated by software management tools to perform operations such as install, compile, delete, purge system configuration files, update. Some packages may work on different distributions if you share a common package, libraries, and similar dependencies.</p>
<p>In other words, a package <strong>can contain either a program, libraries or simply instructions</strong> to the operating system, all compressed into a single file.</p>
<h2>Using APT on Ubuntu 18.04</h2>
<p>As mentioned, APT manages packages, mainly.DEB, packages that can do very delicate things, so all commands associated with APT must be made with super user privileges.</p>
<h4>0.- Basic use of the command</h4>
<p>A great way to learn how to use a command is to show your help from the terminal:</p>
<p><strong>           apt &#8211;help</strong></p>
<figure id="attachment_4073" aria-describedby="caption-attachment-4073" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4073" src="https://www.osradar.com/wp-content/uploads/2018/06/0-1.png" alt="0.- Apt help" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/0-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/0-1-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/0-1-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/0-1-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/0-1-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/0-1-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/0-1-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4073" class="wp-caption-text">0.- Apt help</figcaption></figure>
<p>In it we can see a list of most used options as well as a detailed description of the command itself.</p>
<p>Another option is to use man. Man allows us to show a guide in the terminal to use command.</p>
<p><strong>man apt</strong></p>
<figure id="attachment_4074" aria-describedby="caption-attachment-4074" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4074" src="https://www.osradar.com/wp-content/uploads/2018/06/00.png" alt="00 man apt" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/00.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/00-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/00-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/00-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/00-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/00-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/00-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4074" class="wp-caption-text">00 man apt</figcaption></figure>
<h4>1.- Refreshing package repositories</h4>
<p>Packages are stored in a common source called repositories. These repositories are the source of where our operating system packages are going to be installed. Then we must get the updated package list in order to have the package available for installation.</p>
<p><strong>sudo apt update</strong></p>
<figure id="attachment_4062" aria-describedby="caption-attachment-4062" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4062" src="https://www.osradar.com/wp-content/uploads/2018/06/1-8.png" alt="1.-apt update" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/1-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/1-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/1-8-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/1-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/1-8-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/1-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/1-8-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4062" class="wp-caption-text">1.-apt update</figcaption></figure>
<h4>2.-Upgrading installed packages</h4>
<p>When the repository cache is updated, we can see if we have packages to update. As we have said, these packages can be whole programs or libraries.</p>
<p><strong>           sudo apt upgrade</strong></p>
<figure id="attachment_4063" aria-describedby="caption-attachment-4063" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4063" src="https://www.osradar.com/wp-content/uploads/2018/06/2-10.png" alt="2.- Upgrading installed packages" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/2-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/2-10-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/2-10-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/2-10-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/2-10-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/2-10-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/2-10-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4063" class="wp-caption-text">2.- Upgrading installed packages</figcaption></figure>
<h4>3.- Installing a package</h4>
<p>We got to the good stuff, installing a package is simple but we need to know its exact name.</p>
<p><strong>           sudo apt install package_name</strong></p>
<p>Also in a single instruction we can install several packages.</p>
<p><strong>          sudo apt install package1_name package2_name</strong></p>
<p>As an example, I will proceed to install a chess game called Chessx.</p>
<p><strong>         sudo apt install chessx</strong></p>
<figure id="attachment_4064" aria-describedby="caption-attachment-4064" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4064" src="https://www.osradar.com/wp-content/uploads/2018/06/3-10.png" alt="3.- Installing a package" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/3-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/3-10-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/3-10-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/3-10-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/3-10-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/3-10-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/3-10-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4064" class="wp-caption-text">3.- Installing a package</figcaption></figure>
<h4>4.-Uninstalling a package</h4>
<p>Once you have installed a package, you have the option to uninstall it:</p>
<p><strong>           sudo apt remove package_name</strong></p>
<p>In this case, i will remove the chessx package:</p>
<p><strong>          sudo apt remove chessx</strong></p>
<figure id="attachment_4065" aria-describedby="caption-attachment-4065" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4065" src="https://www.osradar.com/wp-content/uploads/2018/06/4-9.png" alt="4.- Removing a package" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/4-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/4-9-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/4-9-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/4-9-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/4-9-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/4-9-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/4-9-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4065" class="wp-caption-text">4.- Removing a package</figcaption></figure>
<p>Additionally we can uninstall several packages in a single instruction:</p>
<p><strong>           sudo apt remove package1_name package2_name . . . . .</strong></p>
<h4>5.- Remove unnecessary packages</h4>
<p>There is also an APT option that allows us to remove all those unnecessary packages that we have in the system. These are usually dependencies that are no longer required.</p>
<p><strong>          sudo apt autoremove</strong></p>
<figure id="attachment_4066" aria-describedby="caption-attachment-4066" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4066" src="https://www.osradar.com/wp-content/uploads/2018/06/5-10.png" alt="5.- Autoremove" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/5-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/5-10-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/5-10-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/5-10-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/5-10-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/5-10-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/5-10-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4066" class="wp-caption-text">5.- Autoremove</figcaption></figure>
<h4>6.- Search for a package</h4>
<p>Thanks to APT we can search for a specific package within the repositories. Or packages that contain in their description the word we are looking for.</p>
<p><strong>            sudo apt search package_name</strong></p>
<p>In my case</p>
<p><strong>            sudo apt search netbeans</strong></p>
<figure id="attachment_4067" aria-describedby="caption-attachment-4067" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4067" src="https://www.osradar.com/wp-content/uploads/2018/06/6-9.png" alt="6.- Searching" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/6-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/6-9-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/6-9-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/6-9-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/6-9-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/6-9-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/6-9-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4067" class="wp-caption-text">6.- Searching</figcaption></figure>
<p>We&#8217;ll get the list of packages related to Netbeans</p>
<h4>7.-Getting information about a specific package:</h4>
<p>Another great utility of APT is to display information from a package:</p>
<p><strong>            sudo apt show package_name</strong></p>
<p>Fox example:</p>
<p><strong>           sudo apt show netbeans</strong></p>
<figure id="attachment_4068" aria-describedby="caption-attachment-4068" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4068" src="https://www.osradar.com/wp-content/uploads/2018/06/7-8.png" alt="7.- showing information about a package" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/7-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/7-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/7-8-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/7-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/7-8-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/7-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/7-8-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4068" class="wp-caption-text">7.- showing information about a package</figcaption></figure>
<h4>8.-Knowing the dependencies of a package</h4>
<p>To know the dependencies of a specific package, we can do it with the following command:</p>
<p><strong>           sudo apt depends package_name</strong></p>
<p>In this case:</p>
<p><strong>           sudo apt depends netbeans</strong></p>
<figure id="attachment_4069" aria-describedby="caption-attachment-4069" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4069" src="https://www.osradar.com/wp-content/uploads/2018/06/8-8.png" alt="8.- apt depends" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/8-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/8-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/8-8-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/8-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/8-8-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/8-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/8-8-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4069" class="wp-caption-text">8.- apt depends</figcaption></figure>
<h4>9.- Download the source files of a package</h4>
<p>Also APT offers us the possibility to download the source files of a package.</p>
<p><strong>            sudo apt source package_name</strong></p>
<p><strong>            sudo apt source nano</strong></p>
<h4>10.- Clean the downloaded and installed packages:</h4>
<p>Over time we download and install many packages, but once installed we can remove the downloaded files and save disk space.</p>
<p><strong>            sudo apt clean</strong></p>
<figure id="attachment_4070" aria-describedby="caption-attachment-4070" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4070" src="https://www.osradar.com/wp-content/uploads/2018/06/9-6.png" alt="9.- Cleaning" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/9-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/9-6-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/9-6-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/9-6-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/9-6-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/9-6-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/9-6-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4070" class="wp-caption-text">9.- Cleaning</figcaption></figure>
<h4>11.- List the contents of a package:</h4>
<p>With the following instruction we can list the contents of a package.</p>
<p><strong>            sudo apt list package_name</strong></p>
<p>In this case:</p>
<p><strong>           sudo apt list geany</strong></p>
<figure id="attachment_4071" aria-describedby="caption-attachment-4071" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4071" src="https://www.osradar.com/wp-content/uploads/2018/06/11-6.png" alt="12.- List packages content" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/11-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/11-6-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/11-6-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/11-6-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/11-6-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/11-6-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/11-6-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4071" class="wp-caption-text">10.- List packages content</figcaption></figure>
<h4>12.- Show installed packages</h4>
<p>Many times it is useful to know the installed packages, for that we write</p>
<p><strong>          sudo apt-cache pkgnames</strong></p>
<figure id="attachment_4072" aria-describedby="caption-attachment-4072" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4072" src="https://www.osradar.com/wp-content/uploads/2018/06/12-5.png" alt="11.- Listing all instaled package" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/12-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/12-5-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/12-5-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/12-5-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/12-5-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/12-5-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/12-5-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4072" class="wp-caption-text">11.- Listing all instaled package</figcaption></figure>
<p>and many more!!</p>
<p>We can conclude that, APT is a veteran among package managers and its use by the terminal is quite simple. However, we can count on graphic tools to manage packages being Synaptic the most popular and lightest.</p>
<p>Using the terminal may be difficult at first, but after a while you may find that it is an efficient and practical tool. And the best way to take advantage of APT&#8217;s flexibility is by using the terminal.</p>
<p>Please share this article through social networks and spread the word.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/apt-the-ubuntu-package-manager/">APT: The Ubuntu package manager</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/apt-the-ubuntu-package-manager/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
