LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-26-2014, 02:35 PM   #1
actinide
Member
 
Registered: Jan 2012
Posts: 333

Rep: Reputation: Disabled
Help please: extracting tar files


I've just downloaded a Tar file and have extracted it but how do I get the
program running all I get are a load of file and folders when Iopen up the folder. any help would be
great
 
Old 02-26-2014, 02:39 PM   #2
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
tell us what the tar file relates to?

There should be a README which will give you build instructions
 
Old 02-26-2014, 02:43 PM   #3
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by actinide View Post
I've just downloaded a Tar file and have extracted it but how do I get the
program running all I get are a load of file and folders when Iopen up the folder. any help would be
great
can't , you give no context

a tar file is a Tape ARchive
It is just a collection of files , in one handy file ( I think originally developed for Tape Backups, hence the name )

tell us what the tar is ( provide link to the source ) and we may be able to help.
 
Old 02-26-2014, 02:44 PM   #4
actinide
Member
 
Registered: Jan 2012
Posts: 333

Original Poster
Rep: Reputation: Disabled
clamav-0.98.1.tar.gz
 
Old 02-26-2014, 02:47 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Code:
tar xf clamav-0.98.1.tar.gz
should be just fine
 
Old 02-26-2014, 02:50 PM   #6
actinide
Member
 
Registered: Jan 2012
Posts: 333

Original Poster
Rep: Reputation: Disabled
I don't understand this heres the output

tar: clamav-0.98.1.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
 
Old 02-26-2014, 02:54 PM   #7
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
source code for clam anti virus

I'm going to go out on a limb and say you are not going to have much luck compiling that

Please don't take that the wrong way


anyway, if you want to try

Code:
cd clamav-0.98.1
./configure && make && sudo make install
However, you should not need to compile it yourself, and for various reasons it is a bad idea

better to install with your distros package manager

ether search for it in ubuntu's Software Center

or on command line

Code:
sudo apt-get install clamav
This way, you will get updates



if you are genuinely interested in compiling your own software, than I would recommend looking at "Linux From Scratch"
fair warning, it is a steep learning curve and assumes you have some basics and is very time consuming but very rewarding
 
Old 02-26-2014, 02:55 PM   #8
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by actinide View Post
I don't understand this heres the output

tar: clamav-0.98.1.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
I'm confused now,

reading your first post I assumed you had already extracted the archive

Anyway, read my previous post
 
Old 02-26-2014, 03:00 PM   #9
actinide
Member
 
Registered: Jan 2012
Posts: 333

Original Poster
Rep: Reputation: Disabled
one last question: I've down loaded programs tar.gz have'nt any success in getting them to run one of them is rkhunter, I've
right clicked and extracted it and got the program but don't know where to go from there seems to have more folders in it
concerning config files and the like.
 
Old 02-26-2014, 03:08 PM   #10
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
Hi actinide, typically if you receive a package in the tar.gz format it tends to be source code and you have to build from there. This involves compiling and the program may need some dependencies. If you don't have these then you have some hard work ahead. It is a good way to learn of course.

As firerat points out, the simplest way is to install the package from your distro's repositories. This way the installer looks after the dependencies and provides updates as they are rolled out.
 
1 members found this post helpful.
Old 02-26-2014, 03:15 PM   #11
actinide
Member
 
Registered: Jan 2012
Posts: 333

Original Poster
Rep: Reputation: Disabled
Hi timl, What i'm trying to do is get the least version of clamav. I downloaded it from the main site and got the tar.gz, but if
I download it from the mint software center, it's the outdated version. I want the current and up to date version.
The same goes for programs that I downloaded from the main website like rkhunter and chkrootkit.
 
Old 02-26-2014, 03:19 PM   #12
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
I think you are downloading source code,


I understand that you may be used to installing software on Windows by downloading from 'random' sites and then double clicking them.


Linux has a different model

your chosen disto maintains a package repository

you ask your package manager ( in the case of ubuntu it is called apt ) via
1 ) GUI , in ubuntu this is called software center
2 ) command line , in ubuntu this is apt-get

to look for a package, and install it
it will periodically update the software for you



an old ( actually, very old ) guide
https://help.ubuntu.com/community/ClamAV

synaptic is no longer installed by default on Ubuntu


please read this

https://wiki.ubuntu.com/SoftwareCenter

and use that to search for ( and install ) clamav, and the rootkit hunter
 
Old 02-26-2014, 03:26 PM   #13
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Ahh, mint

Mint has synaptic

anyway, sometimes the latest is not always the 'best'
Newer versions may have bugs, either stability or worse security..

Should serious security issues be discovered in your existing version, your disto's maintainer will quickly assess and roll out updates

for this reason it is important that you keep your Disrto up-to-date, using the latest ( LTS ) version
and that you keep the software updated ( the package manager should do most of that for you )
 
Old 02-26-2014, 03:26 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by actinide View Post
Hi timl, What i'm trying to do is get the least version of clamav. I downloaded it from the main site and got the tar.gz, but if
I download it from the mint software center, it's the outdated version. I want the current and up to date version.
The same goes for programs that I downloaded from the main website like rkhunter and chkrootkit.
Ok, we'll use clamav as an example. Assuming you downloaded a .tar.gz file (or .tgz as they are sometimes named):
  • Type in "tar xvfz <filename>". That will decompress the file and give you the source code directory.
  • Look in there for the INSTRUCTIONS. For clamav, the very obvious "INSTALL" file contains the step-by-step instructions you need to follow. The file could also be called README, or some permutation of either of those. In any case, it should be VERY obvious.
  • Repeat for any other source packages you have.
A good step would also be checking the documentation:
ClamAV - http://www.clamav.net/lang/en/doc/
RKHunter - http://rkhunter.cvs.sourceforge.net/...r/files/README
Chkrootkit - http://www.chkrootkit.org/README

All of those project have easily found documentation on their websites that tell you how to perform the installation. The man pages for the tar command will tell you how to uncompress things.
 
Old 02-26-2014, 03:35 PM   #15
actinide
Member
 
Registered: Jan 2012
Posts: 333

Original Poster
Rep: Reputation: Disabled
Firerat I'm talking about current version, it's not in the respositories. This is getting frustrating.

I just want the updated version of program

if I have to apt-get or from repo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting files...installing files.....from *.tar.bz2 and *ipk vinodhkumarvk Linux - Newbie 19 02-27-2013 02:29 AM
[SOLVED] extracting group of files from a tar.bz that was created with the following tar - lleb Linux - Newbie 1 06-06-2012 03:06 PM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
Extracting particular files on a tar from a tape Berris.Oliver Linux - Newbie 2 04-16-2009 03:04 AM
extracting tar.gzip files drmjh Linux - Newbie 6 08-15-2007 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration