{"id":24476,"date":"2024-01-31T15:56:04","date_gmt":"2024-01-31T15:56:04","guid":{"rendered":"https:\/\/linuxways.net\/?p=24476"},"modified":"2024-01-31T15:58:06","modified_gmt":"2024-01-31T15:58:06","slug":"install-tar-gz-file-linux-mint-21","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/install-tar-gz-file-linux-mint-21\/","title":{"rendered":"How to Install tar.gz File on Linux Mint 21"},"content":{"rendered":"<p>In the Linux operating system, the <strong>tar.gz<\/strong> file is a compressed\/zip archive file in which numerous files and directories are combined into a single zip file. The \u201ctar\u201d stands for \u201ctape archive\u201d and \u201cgz\u201d specifies that the file is compressed through GZIP compression format. The <strong>tar.gz <\/strong>format reduces the file size and makes it easier for users to save and send files easily.<\/p>\n<p>Many software packages are available in the \u201c<strong>tar.gz<\/strong>\u201d source file format because it enables developers to package their software along with all dependencies into a single compressed file. It provides a convenient and efficient way to compress multiple files and distribute them, which users can install on various Linux distributions including Linux Mint.<\/p>\n<h2><strong>Quick Outline<\/strong><\/h2>\n<ul>\n<li><a href=\"#post-24476-tses5vqhw3iv\"><strong>How to Install tar.gz File on Linux Mint 21<\/strong><\/a><\/li>\n<li><a href=\"#post-24476-zdctv8oq6mav\"><strong>How to Uninstall tar.gz File on Linux Mint 21<\/strong><\/a><\/li>\n<li><a href=\"#post-24476-v6nlx0ywtfyr\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-24476-tses5vqhw3iv\"><\/a>How to Install tar.gz File on Linux Mint 21<\/h2>\n<p>To install the <strong>tar.gz<\/strong> file on the Linux Mint system, download the <strong>tar.gz<\/strong> source code file of the required software. Then, it is required to extract its content, configure and compile it. Finally, you can install it using the \u201c<strong>sudo make install<\/strong>\u201d command.<\/p>\n<p>For the practical demonstration, go through the following instructions to install the <strong>tar.gz<\/strong> file on Linux Mint:<\/p>\n<p><strong>Step 1: Update System Packages<\/strong><\/p>\n<p>First, update and upgrade the Linux Mint packages list via the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update;<span class=\"kw2\">sudo<\/span> apt upgrade <span class=\"re5\">-y<\/span><\/div><\/div>\n<p>By doing so, all the system\u2019s packages have been refreshed:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"347\" class=\"wp-image-24534\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-1.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-1-300x142.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p><strong>Step 2: Install Required Dependencies <\/strong><\/p>\n<p>Then, utilize the \u201c<strong>sudo apt install<\/strong>\u201d command to install the necessary tools or dependencies required for the source code (tar.gz) file\u2019s extraction and installation:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> <span class=\"kw2\">gzip<\/span> <span class=\"kw2\">tar<\/span> pkg-config build-essential libz-dev libtool <span class=\"kw2\">automake<\/span> autopoint <span class=\"kw2\">gettext<\/span> <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"411\" class=\"wp-image-24535\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-2.png 733w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-2-300x168.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/p>\n<p><strong>Step 3: Enable \u201cSource code repositories\u201d<\/strong><\/p>\n<p>Next, you have to enable the source code repositories on your system that will allow you to modify and contribute to the various software packages. To do so, open the \u201c<strong>Software Sources<\/strong>\u201d from the Menu:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"513\" class=\"wp-image-24538\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-3.png 686w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-3-300x224.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/p>\n<p>Enable the below-highlighted \u201c<strong>Source code repositories<\/strong>\u201d to access the source code of the desired software and hit the \u201c<strong>OK<\/strong>\u201d button:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"470\" class=\"wp-image-24539\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-4.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-4-300x193.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p>By doing so, the repository\u2019s cache will start updating:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"463\" class=\"wp-image-24542\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-5.png 732w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-5-300x190.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<p><strong>Step 4: Download tar.gz File<\/strong><\/p>\n<p>Now, download the <strong>tar.gz<\/strong> source code file of the required software from the official or trusted source website, using the web browser or \u201cwget\u201d or \u201ccurl\u201d commands. Here, we are downloading the <strong>Git <\/strong>source code tar.gz file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> https:<span class=\"sy0\">\/\/<\/span>mirrors.edge.kernel.org<span class=\"sy0\">\/<\/span>pub<span class=\"sy0\">\/<\/span>software<span class=\"sy0\">\/<\/span>scm<span class=\"sy0\">\/<\/span>git<span class=\"sy0\">\/<\/span>git-2.43.0.tar.gz<\/div><\/div>\n<p><strong>Note:<\/strong> You must visit the <a href=\"https:\/\/mirrors.edge.kernel.org\/pub\/software\/scm\/git\/\">Git website<\/a> to check and download its latest version.<\/p>\n<p>It can be observed that Git\u2019s <strong>tar.gz<\/strong> source code file has been downloaded successfully:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"494\" class=\"wp-image-24543\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-6.png 753w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-6-300x197.png 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/p>\n<p><strong>Step 5: Extract Compressed tar.gz File <\/strong><\/p>\n<p>After that, extract\/unzip the downloaded compressed <strong>tar.gz<\/strong> file using the \u201c<strong>tar<\/strong>\u201d command along with the file name. You can also extract it into the specific directory or with the specific output file name. Here, we are simply extracting it in the current \u201cDownloads\u201d directory:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">tar<\/span> <span class=\"re5\">-xvzf<\/span> git-2.43.0.tar.gz<\/div><\/div>\n<p>Here, \u201c<strong>x<\/strong>\u201d represents the extraction, \u201c<strong>v<\/strong>\u201d denotes the details of extraction, \u201c<strong>f<\/strong>\u201d specifies the file name that is being extracted, and \u201c<strong>z<\/strong>\u201d represents that the file is in zipped format.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"425\" class=\"wp-image-24547\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-7.png 753w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-7-300x169.png 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/p>\n<p>Upon doing so, the <strong>tar.gz<\/strong> file has been extracted successfully as seen below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"124\" class=\"wp-image-24550\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-8.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-8-300x51.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<p><strong>Step 6: Redirect to Extracted Directory<\/strong><\/p>\n<p>Utilize the \u201c<strong>cd<\/strong>\u201d command and navigate to the extracted directory i.e. \u201c<strong>git-2.43.0<\/strong>\u201d for further configuration and installation:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">cd<\/span> git-2.43.0<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"103\" class=\"wp-image-24551\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-9.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-9-300x42.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p><strong>Note: <\/strong>You can also check for the installation instructions in the \u201cINSTALL\u201d or \u201cREADME\u201d files in the extracted directory. These files include the specific steps for installing software provided by software developers. You can read these files using the \u201c<strong>cat<\/strong>\u201d command.<\/p>\n<p><strong>Step 7: Start Configuration Process<\/strong><\/p>\n<p>In the extracted directory, type out the below-listed command to initiate\/start the configuration process. It will check the system for necessary dependencies and create the \u201c<strong>makefile<\/strong>\u201d to compile and install Git\u2019s source code:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">.<span class=\"sy0\">\/<\/span>configure<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"752\" height=\"457\" class=\"wp-image-24552\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-10.png 752w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-10-300x182.png 300w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/p>\n<p><strong>Step 8: Compile Source Code<\/strong><\/p>\n<p>To compile the source code of <strong>Git <\/strong>into the executable files, run the below-listed command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">make<\/span><\/div><\/div>\n<p><strong>Note: <\/strong>You can also use the \u201c<strong>-j<\/strong>\u201d flag along with an integer in the \u201cmake\u201d command to optimize the file-building process. For instance, the \u201c<strong>-j4<\/strong>\u201d option will utilize 4 threads for parallel compilation and minimize compilation time.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"452\" class=\"wp-image-24565\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-11.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-11-300x184.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p><strong>Step 9: Install Git on the System<\/strong><\/p>\n<p>Once you are done with the compilation process, execute the \u201c<strong>make install<\/strong>\u201d command as root\/sudo privileges to install the Git software on the Linux Mint system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">make<\/span> <span class=\"kw2\">install<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"412\" class=\"wp-image-24573\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-12.png 755w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-12-300x164.png 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/p>\n<p><strong>Step 10: Verify Installation <\/strong><\/p>\n<p>Finally, check the software version that is installed from the source code (tar.gz) file to ensure that it is installed on the system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">git<\/span> <span class=\"re5\">--version<\/span><\/div><\/div>\n<p>As you can see, Git has been successfully installed on the Linux Mint system from the source code:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"127\" class=\"wp-image-24583\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-13.png 753w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-13-300x51.png 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/p>\n<h2><a id=\"post-24476-zdctv8oq6mav\"><\/a>How to Uninstall tar.gz File on Linux Mint 21<\/h2>\n<p>You may want to uninstall the software that was installed from the source code\/tar.gz file. To uninstall or remove it, simply navigate to the directory where you have installed it on your system and execute the \u201c<strong>sudo make uninstall<\/strong>\u201d command. This command reverses the installation process and removes the software from the system.<\/p>\n<p>However, some source code files do not have an uninstallation script, which means that you cannot uninstall the software that was installed through the source code using the \u201csudo make uninstall\u201d command. If the source code\u2019s uninstallation script is not available, you will get an error while executing the removal command as seen below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">make<\/span> uninstall<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"126\" class=\"wp-image-24590\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-14.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-14-300x51.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>In such cases, you will have to manually remove the software from your system. For instance, we are uninstalling Git from the system using the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">find<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span><span class=\"kw3\">local<\/span> <span class=\"re5\">-depth<\/span> <span class=\"re5\">-iname<\/span> <span class=\"st_h\">'git*'<\/span> <span class=\"re5\">-exec<\/span> <span class=\"kw2\">rm<\/span> <span class=\"re5\">-rf<\/span> <span class=\"br0\">&#123;<\/span><span class=\"br0\">&#125;<\/span> \\;<\/div><\/div>\n<p>Here, the \u201c<strong>find<\/strong>\u201d command locates the \u201c<strong>git<\/strong>\u201d related files in the \u201c<strong>\/usr\/local<\/strong>\u201d directory with a depth-first search. Then, \u201c<strong>-exec rm -rf<\/strong>\u201d removes each found file recursively and forcefully.<\/p>\n<p><strong>Note:<\/strong> Before executing this command, make sure that you are in the right directory because the \u201c<strong>rm -rf<\/strong>\u201d command directly deletes files and directories without any confirmation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"147\" class=\"wp-image-24599\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-15.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-15-300x60.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<p>To verify whether the Git software has been removed from the system or not, check its version:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">git<\/span> <span class=\"re5\">--version<\/span><\/div><\/div>\n<p>According to the below output, Git has been successfully uninstalled from the system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"125\" class=\"wp-image-24605\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-16.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24476-16-300x51.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<p>That was all about installing and uninstalling <strong>tar.gz <\/strong>files on Linux Mint.<\/p>\n<h2><a id=\"post-24476-v6nlx0ywtfyr\"><\/a>Conclusion<\/h2>\n<p>The <strong>tar.gz<\/strong> file is a zip file that is available for various software packages. It\u2019s primarily used for compressing numerous files into a single zip file. It can contain text files, scripts, Debian packages, and AppImages files. If you need to install the <strong>tar.gz<\/strong> file on your Linux Mint system, download the source code file of the required software. Then, extract its content, configure, and compile it, and install the software. This guide has illustrated the detailed procedure to install and uninstall the <strong>tar.gz<\/strong> file in Linux Mint.<\/p>","protected":false},"excerpt":{"rendered":"<p>To install the tar.gz file on Linux Mint, download the tar.gz file. Then, extract its content, compile it, and install it via the \u201cmake install\u201d command.<\/p>","protected":false},"author":112,"featured_media":24787,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-24476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/112"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=24476"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24476\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/24787"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=24476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=24476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=24476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}