Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It says: "Ensure you have version 1.30 or above of tar available in your system."
When I type `tar --version`, I get:
`tar (GNU tar) 1.28`
How do I update "tar"? I tried googling around. I found how to update things using "tar", but not how to update "tar".
Thanks
It really depends on the Linux distribution you're using, as you would normally use software packages, but not all distributions use the same package managers.
So tell us which distribution you're using, and try opening your package manager and seeing if there is a better version of tar available.
It really depends on the Linux distribution you're using, as you would normally use software packages, but not all distributions use the same package managers.
So tell us which distribution you're using, and try opening your package manager and seeing if there is a better version of tar available.
Thanks jsbjsb001!
I'm using Ubunutu 16.04.5 LTS
I updated all my packages using this command `sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'`, but "tar" is still stuck in year 2016 with version 1.28.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by mike935
Thanks jsbjsb001!
I'm using Ubunutu 16.04.
I updated all my packages using this command `sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'`, but "tar" is still stuck in year 2016 with version 1.28.
I'm not surprised you still have version 1.28 then. I suggest you download and install a more current version of Ubuntu, like Ubuntu 18.04.1 LTS for starters.
You don't say which distribution you are using. So, first make sure the version of tar you have through your distribution's repository system doesn't work for whatever you are trying to do. If it doesn't then you will probably have to install manually. To do so go to https://www.gnu.org/software/tar/ and download the most current package, which I believe is in fact 1.30. It will be a compressed file. Uncompress it and then look in the uncompressed directory for an INSTALL or README file. It should have instructions or an installation program. Be aware if you are going to install a version without going through your distribution's system you may need to uninstall first through yum, apt-get or whatever your distro uses.
I'm not surprised you still have version 1.28 then. I suggest you download and install a more current version of Ubuntu, like Ubuntu 18.04.1 LTS for starters.
Yeah... but the issue is that the goal of this tutorial to backup my Gitlab and move it to a new Ubuntu 18.04 server.
So how can I move to Ubuntu 18.04, without backing up my Gitlab?
You don't say which distribution you are using. So, first make sure the version of tar you have through your distribution's repository system doesn't work for whatever you are trying to do. If it doesn't then you will probably have to install manually. To do so go to https://www.gnu.org/software/tar/ and download the most current package, which I believe is in fact 1.30. It will be a compressed file. Uncompress it and then look in the uncompressed directory for an INSTALL or README file. It should have instructions or an installation program. Be aware if you are going to install a version without going through your distribution's system you may need to uninstall first through yum, apt-get or whatever your distro uses.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by mike935
Yeah... but the issue is that the goal of this tutorial to backup my Gitlab and move it to a new Ubuntu 18.04 server.
So how can I move to Ubuntu 18.04, without backing up my Gitlab?
Ok, so why not just do a clean install of Ubuntu 18.04, and then backup your Gitlab?
If your stuff is online anyway; then what's it matter if you back it up after you install Ubuntu 18.04 ?
I wouldn't recommend doing a in-place upgrade for Ubuntu.
Ok, so why not just do a clean install of Ubuntu 18.04, and then backup your Gitlab?
If your stuff is online anyway; then what's it matter if you back it up after you install Ubuntu 18.04 ?
I wouldn't recommend doing a in-place upgrade for Ubuntu.
I'm not sure I understand what you suggest me to do.
I'm trying to :
1.Backup Gitlab on my old server (but I can't because it has Ubuntu 16.04 and Ubuntu 16.04 doesn't have tar 1.30)
2.Install Ubuntu 18.04 on a new server
3.Install Gitlab on a new server
4.Restore my Gitlab backup on the new server
There are a number of ways to backup your computer. I am not acquainted with gitlab, but you might simply use rsync to backup what you want. There are lots of other backup programs but many of them use rsync. It is best if you backup to another device other than your computer, another computer or an external drive that is not connected during the installation so there is no way for the update to destroy the backup. Then, either do a fresh install or update through ubuntu. One trick I will strongly suggest if you have the disk space is to repartition your hard drive. Gparted is great for this. If you know you are going to install a new system reduce you current system partition to a minimum size (gparted will show you how much is being used) and then create a new partition for the new system. Install the new system in the new partition. Then. mount the old partition somewhere, /mnt or somewhere, and you can copy any necessary files from the old to the new and you will have lost nothing. You can even boot into the old system if you need to.
Glad it worked. However, I would still recommend following jsbjsb's suggestion and update to 18.04 LTS. Then you will be ok for several more years. Support for 16.04 runs out in the not too distant future.
Glad it worked. However, I would still recommend following jsbjsb's suggestion and update to 18.04 LTS. Then you will be ok for several more years. Support for 16.04 runs out in the not too distant future.
Support for Ubuntu 16.04 runs out in April 2021. That's still quite a while to go.
No worries, agillator. Support for the main Ubuntu distro itself normally lasts 5 years, although Mark Shuttleworth recently announced that 18.04 would be supported for 10 years (but gave no details). For the flavours (Xubuntu, Ubuntu MATE, etc.), the underlying base Ubuntu packages are supported for the 5 years but the flavour-specific parts (desktop environment etc.) are normally only supported for 3 years, although I'm not sure whether or not this extends to all flavours or just most of them. Hope that makes sense.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.