Linux https://www.novicedev.com/ en How to update Linux packages with command https://www.novicedev.com/blog/how-update-linux-packages-command <span>How to update Linux packages with command</span> <div class="field field--name-field-image field--type-image field--label-hidden field-item"> <img loading="lazy" src="/sites/novicedev/files/styles/blog_cover/public/2021-09/How%20to%20update%20Linux%20from%20terminal.jpg?itok=qdxko20g" width="772" height="579" alt="How to update Linux packages with command" title="How to update Linux packages with command" class="image-field" /> </div> <span><span>noviceadmin</span></span> <span>Sun, 09/12/2021 - 06:10</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field-item"><p>You might be using a Linux distribution like Ubuntu or PopOS and want to update Linux packages with the terminal. To achieve this you just need two commands.</p> <h2>Step 1: Run "sudo apt update" to resynchronize package index</h2> <p>The first command "apt-get update" is to resynchronize the package index with the source.</p> <pre> <code>sudo apt update</code></pre> <p>OR</p> <pre> <code>sudo apt-get update</code></pre> <p>Output</p> <pre> <code>Hit:1 https://brave-browser-apt-release.s3.brave.com stable InRelease Hit:2 http://packages.microsoft.com/repos/code stable InRelease Hit:3 http://apt.pop-os.org/proprietary hirsute InRelease Hit:4 http://us.archive.ubuntu.com/ubuntu hirsute InRelease Hit:5 http://ppa.launchpad.net/daniruiz/flat-remix/ubuntu hirsute InRelease Hit:6 http://us.archive.ubuntu.com/ubuntu hirsute-security InRelease Hit:7 http://us.archive.ubuntu.com/ubuntu hirsute-updates InRelease Hit:8 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu hirsute InRelease Hit:9 https://download.sublimetext.com apt/stable/ InRelease Hit:10 http://us.archive.ubuntu.com/ubuntu hirsute-backports InRelease Hit:11 http://ppa.launchpad.net/papirus/papirus/ubuntu hirsute InRelease Hit:12 http://ppa.launchpad.net/system76/pop/ubuntu hirsute InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 94 packages can be upgraded. Run 'apt list --upgradable' to see them.</code></pre> <p>If you see any updates available then you can run the second command.</p> <h2>Step 2: Run "apt-get upgrade" to download available package updates</h2> <p>And the second command is "apt-get upgrade" to actually download available package updates.</p> <pre> <code>sudo apt upgrade</code></pre> <p>OR</p> <pre> <code>sudo apt-get upgrade</code></pre> <p>Output</p> <pre> <code>Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done . . . The following packages will be upgraded: apport brave-browser code curl libcurl3-gnutls libcurl4 libdrm-amdgpu1 libdrm-amdgpu1:i386 libdrm-common libdrm-intel1 libdrm-intel1:i386 libdrm-nouveau2 libdrm-nouveau2:i386 libdrm-radeon1 libdrm-radeon1:i386 libdrm2 libdrm2:i386 libegl-mesa0 libgbm1 libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-dri:i386 libglapi-mesa libglapi-mesa:i386 libglx-mesa0 libglx-mesa0:i386 libnvidia-cfg1-465 libnvidia-cfg1-470 libnvidia-common-465 . . . 94 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. 8 standard security updates Need to get 799 MB of archives. After this operation, 775 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://brave-browser-apt-release.s3.brave.com stable/main amd64 brave-browser amd64 1.29.81 [91.7 MB] Get:2 http://us.archive.ubuntu.com/ubuntu hirsute-security/main amd64 libcurl3-gnutls amd64 7.74.0-1ubuntu2.3 [248 kB] Get:3 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main amd64 libdrm-common all 2.4.107-1pop0~1631647891~21.04~ab1d332 [15.2 kB] Get:4 http://packages.microsoft.com/repos/code stable/main amd64 code amd64 1.60.1-1631294805 [75.9 MB] . . . Progress: [ 90%] [############################################################..........] </code></pre> <p>After running "sudo apt upgrade" you might be prompted to press Y to continue. So just press "Y" and the packages will be upgraded.</p> <p>Based on the upgrade size it might take some time, so sit tight.</p> <h2>Optional Step: Run "sudo apt autoremove"</h2> <p>Once you run the upgrade command you might see a message about automatically installed packages that are no longer required. And this also helps in freeing up some space on your disk.</p> <pre> <code>sudo apt autoremove</code></pre> <p>Or</p> <pre> <code>​sudo apt-get autoremove</code></pre> <p>Output:</p> <pre> <code>Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: fonts-lato gir1.2-xapp-1.0 gist inxi libllvm11:i386 libruby2.7 libxapp1 linux-headers-5.11.0-7614 linux-headers-5.11.0-7614-generic linux-headers-5.11.0-7620 linux-headers-5.11.0-7620-generic linux-image-5.11.0-7614-generic linux-image-5.11.0-7620-generic linux-modules-5.11.0-7614-generic linux-modules-5.11.0-7620-generic linux-modules-extra-5.11.0-7614-generic linux-modules-extra-5.11.0-7620-generic python3-configobj python3-debconf python3-distro-info python3-distupgrade python3-requests-file python3-setproctitle python3-tldextract python3-update-manager rake ruby ruby-json ruby-minitest ruby-net-telnet ruby-power-assert ruby-rubygems ruby-test-unit ruby-xmlrpc ruby2.7 rubygems-integration tree xapps-common 0 upgraded, 0 newly installed, 38 to remove and 0 not upgraded. After this operation, 1,105 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 508365 files and directories currently installed.) . . . </code></pre> <p> </p> <p>And now you have a Linux system with fully updated packages. And make sure to run these commands regularly to make sure you don't fall behind.</p> <p> </p> <p>Cover Photo by <a href="https://unsplash.com/@6heinz3r?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Gabriel Heinzer</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p> </div> <div class="node-taxonomy-container"> <ul class="taxonomy-terms"> <li class="taxonomy-term"><a href="/topic/linux" hreflang="en">Linux</a></li> </ul> </div> <!--/.node-taxonomy-container --> <section id="node-article-comment" id="comments"> <div class="comment-form-wrap"> <h2 class="add-comment-title">Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=15&amp;2=comment&amp;3=comment" token="EQr7U62Ohq-jqYwGuQE5z60d5XQ-npXesPuXroqMZ3M"></drupal-render-placeholder> </div> <!--/.comment-form --> </section> Sun, 12 Sep 2021 06:10:55 +0000 noviceadmin 15 at https://www.novicedev.com Installing LAMP stack in Ubuntu https://www.novicedev.com/blog/installing-lamp-stack-ubuntu <span>Installing LAMP stack in Ubuntu</span> <div class="field field--name-field-image field--type-image field--label-hidden field-item"> <img loading="lazy" src="/sites/novicedev/files/styles/blog_cover/public/2022-02/ubuntu-lamp.png?itok=-Cho65gv" width="772" height="434" alt="Installing LAMP stack in Ubuntu" title="Installing LAMP stack in Ubuntu" class="image-field" /> </div> <span><span>noviceadmin</span></span> <span>Tue, 12/10/2013 - 14:55</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field-item"><p>LAMP stack is a bundle of open-source software used to create one of the powerful web servers. The acronym stands for Linux, Apache, MySQL, and PHP. Diagram for LAMP stack:</p> <p>There are two ways to install LAMP stack in Ubuntu :</p> <h2>Installing each package individually</h2> <p>For installing each package individually follow the following steps:</p> <p>First of all install Apache web-server, generally recognized as the world's most popular Web server by executing this command to your terminal. For our example, we are using the latest Apache2.</p> <pre> <code class="language-php">sudo apt-get install apache2</code></pre> <p>Time to test open your browser and hit the following URL you will see a message saying "It works!”</p> <p>localhost/</p> <p>Second, install PHP open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. For our example, we are using the latest version of PHP i.e. PHP5</p> <pre> <code class="language-php">sudo apt-get install php5 libapache2-mod-php5</code></pre> <p>For connecting Apache2 and PHP5 we also install libraries in the above command. After this restart your Apache2 services by the following command.</p> <pre> <code class="language-php">sudo /etc/init.d/apache2 restart</code></pre> <p>Time to test create a file with the info.php name in your /var/www/ directory and write the following code in it.</p> <p>Creating file:</p> <pre> <code class="language-php">sudo gedit /var/www/info.php</code></pre> <pre> <code class="language-php">&lt;?php phpinfo(); ?&gt;</code></pre> <p>Save the file. Now open your browser and hit the following URL to see the given page.</p> <p>localhost/info.php</p> <p>Third, it’s time for our MySQL world's second most widely used open-source relational database management system. Execute the following command to your terminal.</p> <pre> <code class="language-php">sudo apt-get install mysql-server</code></pre> <p>For connecting MySQL and PHP5 we need to install libraries by executing the following command.</p> <pre> <code class="language-php">sudo apt-get install php5-mysql</code></pre> <p>Again we have to restart our Apache2 web server with the following command.</p> <pre> <code class="language-php">sudo /etc/init.d/apache2 restart</code></pre> <p>You can also install the User interface of MySQL by executing the following command in your terminal.</p> <pre> <code class="language-php">sudo apt-get install phpmyadmin</code></pre> <p>Time to test hit the following URL to your browser and see the given page.</p> <p>localhost/phpmyadmin</p> <p>Now we have completed our installation of the LAMP stack.</p> <h2>Installing complete LAMP stack with one command:</h2> <p>For installing the complete package in one go follow the following steps:</p> <p>First, we need to install an ubuntu’s tasksel tool which is used for installing multiple related packages as a coordinated "task" onto your system. For installing tasksel execute the following command in your terminal.</p> <pre> <code class="language-php">sudo apt-get install phpmyadmin</code></pre> <p>The second time for LAMP stack in one go execute the following command.</p> <pre> <code class="language-php">sudo tasksel install lamp-server</code></pre> <p>Now we get our completed LAMP stack in two steps.</p> </div> <div class="node-taxonomy-container"> <ul class="taxonomy-terms"> <li class="taxonomy-term"><a href="/topic/lamp" hreflang="en">LAMP</a></li> <li class="taxonomy-term"><a href="/topic/ubuntu" hreflang="en">Ubuntu</a></li> <li class="taxonomy-term"><a href="/topic/linux" hreflang="en">Linux</a></li> </ul> </div> <!--/.node-taxonomy-container --> <section id="node-article-comment--2" id="comments"> <div class="comment-form-wrap"> <h2 class="add-comment-title">Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=25&amp;2=comment&amp;3=comment" token="zIcYfyx9x2R_eMpsZ9_uvNrYo5LC9hJAkmbrmdnOI5c"></drupal-render-placeholder> </div> <!--/.comment-form --> </section> Tue, 10 Dec 2013 14:55:06 +0000 noviceadmin 25 at https://www.novicedev.com