Unpack fog tar ball on Ubuntu 12.04LTS



  • Guyz: A NOOB question. I am trying to unpack the FOG tar ball in the /OPT directory. The locate command doesn’t show the tar ball in the OPT directory but the LS command does. Thought it might be a permission issue so became ROOT but still no go. I’m confused.
    /home/foggy/Downloads/fog_0.32.tar.gz
    foggy@Fog-Server:~$ sudo cp /home/foggy/Downloads/fog_0.32.tar.gz /opt
    [sudo] password for foggy:
    foggy@Fog-Server:~$ cd /opt
    foggy@Fog-Server:/opt$ ls
    fog_0.32.tar.gz
    foggy@Fog-Server:/opt$ sudo apt-get install fog_0.32.tar.gz
    [sudo] password for foggy:
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package fog_0.32.tar.gz
    E: Couldn’t find any package by regex 'fog_0.32.tar.gz’
    foggy@Fog-Server:/opt$
    foggy@Fog-Server:/opt$ ls -l
    total 45492
    -rwxr-xr-x 1 root root 46579295 Oct 31 14:55 fog_0.32.tar.gz
    foggy@Fog-Server:/opt$ sudo apt-get install fog_0.32.tar.gz
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package fog_0.32.tar.gz
    E: Couldn’t find any package by regex 'fog_0.32.tar.gz’
    foggy@Fog-Server:/opt$ sudo su
    root@Fog-Server:/opt# apt-get install fog_0.32.tar.gz
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package fog_0.32.tar.gz
    E: Couldn’t find any package by regex 'fog_0.32.tar.gz’
    root@Fog-Server:/opt# ls
    fog_0.32.tar.gz
    root@Fog-Server:/opt# locate fog_0.32.tar.gz
    /home/foggy/.local/share/Trash/files/Link to fog_0.32.tar.gz
    /home/foggy/.local/share/Trash/info/Link to fog_0.32.tar.gz.trashinfo
    /home/foggy/Downloads/fog_0.32.tar.gz
    root@Fog-Server:/opt# cd ./
    root@Fog-Server:/opt# locate fog_0.32.tar.gz
    /home/foggy/.local/share/Trash/files/Link to fog_0.32.tar.gz
    /home/foggy/.local/share/Trash/info/Link to fog_0.32.tar.gz.trashinfo
    /home/foggy/Downloads/fog_0.32.tar.gz
    root@Fog-Server:/opt# mv /home/foggy/Downloads/fog_0.32.tar.gz /opt
    root@Fog-Server:/opt# locate fog_0.32.tar.gzz
    root@Fog-Server:/opt# locate fog_0.32.tar.gz
    /home/foggy/.local/share/Trash/files/Link to fog_0.32.tar.gz
    /home/foggy/.local/share/Trash/info/Link to fog_0.32.tar.gz.trashinfo
    /home/foggy/Downloads/fog_0.32.tar.gz
    root@Fog-Server:/opt# ls
    fog_0.32.tar.gz
    root@Fog-Server:/opt# apt-get install fog_0.32.tar.gz
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package fog_0.32.tar.gz
    E: Couldn’t find any package by regex 'fog_0.32.tar.gz’
    root@Fog-Server:/opt#


  • Senior Developer

    If you ever need help, please don’t be afraid to ask :)



  • Tom: Thanks, that did it. I’m going to learn Linux even if it kills me.


  • Senior Developer

    The tar command is Tape ARchive.

    If you don’t specify the -f/f argument, it is actually waiting for data to be archived to tape, which is why you’re seeing the cursor just sit there. Add the f argument (at the end directly before you put the filename) and it tells the command to process from the file.

    NOTE: You can’t place the -f anywhere, it has to be the last argument in the series followed by the file name. I suppose you could, though I’ve never done it that way, have the command as:

    [code]tar -f <FILENAME> -xz[/code]


  • Senior Developer

    You forgot, from the command, the f option.

    so your command should read:

    [code]sudo tar xvzf fog_0.32.tar.gz[/code]

    If you’ve already gunzipped the file so you actually have: fog_0.32.tar
    Then you’ll need:
    [code]sudo tar xvf fog_0.32.tar[/code]



  • Tom: thanks for the help yesterday. I looked up the TAR command to understand what is being done. I added the “V” option foggy@Fog-Server:/opt$ sudo tar xvz fog_0.32.tar
    to see the unpacking process but when i execute, the prompt just sits there. Any guidance would be appreciated.


  • Senior Developer

    You don’t use aptget for unpacking tarballs. You use the tar command.

    [Code]sudo tar -xzf fog_0.32.tar.gz[/Code]

    EDITING AS I FORGOT THE -f argument.


Log in to reply
 

437
Online

38994
Users

10714
Topics

101705
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.