LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2005, 06:04 AM   #1
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Rep: Reputation: 30
install tarballs problem


G'Day there , I gotta problem, when I use the cd command which I think is the first step at instaslling a tarball I find I keep getting the "no such file or directory" error , now I want to make it clear I have the tarball at the location I typed as I have dragged and dropped other packages "tgz" using KPackage from same folder etc. Now the folder I put my packages I download into is /home/1hutchy/downloads1 . I opened /home/1hutchy using kwrite and created the folder downloads1 to put my downloads into , now if I open a terminal and type cd /home/1hutchy/downloads/package.tar.gz I will get no such file or directory, but if I only type /home/1hutchy then I dont get a error , But if I even just add /downloads1 onto it with out the package it still wont work .it seems as though any folder I create no matter where I create it -opt, or /usr or home or whereever I will get the same error , So why wont or cant I get it to find or recognize my created folders , I want to add I have tried multiple threads and posts and have googled 4 answers and get no where, I have been stuck on this 4 a long time and its caused a lot of mental grief as I cant get no where, I even tried downloading straight to a normal directory like /home or /opt but it never seems to recognize the place where package is held , I am using root permissions & even tried directly in root and same problem ,also doesnt matter which distro I have tried this in ,AnyWay why wont these commands given in tutorials recognise new folders or the place a package is stored? Theres gotta be something I am doing wrong?
 
Old 04-13-2005, 06:15 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
That's because a package is not a directory, so it can't be accessed by the "cd" command which stands for "change directory" (some file explorers like Nautilus and Konqueror MAY fake this by extracting it and letting you view it "on the fly" like if it were a directory with files on it).
You have to first extract all the directories/files inside the comprssed file with a command like: tar -zxf file.tar.gz
This should extract the contents of file to the directory and you can now access them with normal commands, I hope this is what you're looking for.

If you're trying to install a Slackware package you could use pkgtool or installpkg/removepkg/upgradepkg to manipulate them.

Remember, if you don't know how to use a command type: man <command>
Ie: man cd
man tar

Sorry if this doesn't answer exactly what you're looking for, but I don't fully understand your problem.

Last edited by gbonvehi; 04-13-2005 at 06:18 AM.
 
Old 04-13-2005, 07:05 AM   #3
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
Thanks gbonvehi, I do use those tools you mentioned to install slackware packages along with drag & drop with KPackage but my point is If I cd to /home or /home/1hutchy I dont get a error ,but if I try to just cd to /home/1hutchy/downloads1 which is a folder I created for my downloads ,I get the error "no such file or directory" or /home/1hutchy/downloads1/package-tar.gz or whatever I get same error , is there something I have to do for it to recognise the /downloads1 folder .the point I am trying to make is I have read tutorials on installing tarballs and typed exactly what they say and if I can cd to a folder I have created then I might start getting somewhere , I wish I new someone who knows linux so I could show them what I am talking about but I dont., So I am trying to explain it best I can. I cant seem to cd to anything that was not created already during Slackware10 install ,any folder or file I create I cant cd to which means I cant cd to the folder that has My package in it so I can install it as I sometimes need to install a tar.gz file?
 
Old 04-13-2005, 07:17 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Try this, open a console and type:
Code:
mkdir /home/1hutchy/testdir
cd /home/1hutchy/testdir
pwd
That should create the testdir folder, get into it and print the current directory which should be /home/1hutchy/testdir.
If you can't achieve that, there can ve several problems like permissions on the directory, a wrong mount (read-only), etc. If you still have problems and have some IM account take a look at my Profile and contact me so we can sort this easier and without flooding the forum.
 
Old 04-13-2005, 09:00 AM   #5
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
Thanks ,I will check it out ,- .Much appreciated
 
Old 04-13-2005, 09:07 PM   #6
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
G'Day again gbonvehi, your little tutorial worked beuatifully, Just wondering though is that how a new folder is meant to be created 4 this sort of thing or can a person normally open up their /home folder & right click on it and then click create new folder like I was doing 4 my downloads etc,as Ihave had this problem 4 a long time trying to install tarballs using different distros etc getting nowhere , This has been my little gripe with linux 4 awhile now that when a tutorial is given especially towards commands etc that they will say something like example "cd to the directory" but 4 the sake of a few extra words they dont give a explanation 4 newbies how to do that or what it means? as I said before I dont know anyone I can turn to for any help on linux,and I tried one day to google 4 a explanation on how to cd , but got nowhere ,only more tutorials on installing tarballs with no explanation what the commands mean their telling us to do in these tutorials, AnyWay I have learnt a lot with linux but it took months to get a proper helpful answer like yours that finally pointed to my problem,-GodBless gbonvehi
 
Old 04-13-2005, 10:58 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
I'm glad your system is fine then. You'll need to start reading about Linux and the way it's filesystem (ext2/3 or reiserfs) works, there are some tricky things like that ALL IS CASE SENSITIVE, files, directories. Also permissions in Linux is very tricky if you're not used to them, of course, if you run as root you won't have this problem unless you try to execute a file that doesn't have the execute permission.
If you want to learn basic stuff you could use the slackware book at http://slackware.com/book/ it explains basic command line commands, permissions and directory structures. About the GUI, well that can be different acording to which one you use, but shouldn't be difficult to get the handle of it. Just remember, be patiente and read a lot, not because people don't want to answer, but because you can actually find a answer faster by reading a book than by asking it.
 
Old 04-14-2005, 08:18 AM   #8
capnpayne
Member
 
Registered: Nov 2004
Location: Florida
Distribution: Slack 10.1
Posts: 56

Rep: Reputation: 15
first, type

file /home/1hutchy/downloads1

if it responds that downloads1 is a directory, then it is, in fact, a directory. otherwise, there was some mix-up along the way.

next, type

ls -R /home | grep ".tgz"

if you see any results, then you actually put the tarballs somewhere in /home.

in that case, use 'su' to become root. then, you can...

installpkg one-result-of-previous-command.tgz

basically, what you've done is listed the contents of every directory in /home and searched those results for the string '.tgz'.
obviously, when you run installpkg, replace 'one-result-of-previous-command.tgz' with a copy-pasted (or well-typed) result from 'ls -R /home | grep ".tgz"'.

also, don't use utilities like kwrite to make directories - consider reading the slackware book on slackware's website.

Last edited by capnpayne; 04-14-2005 at 08:19 AM.
 
Old 04-16-2005, 08:01 AM   #9
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
Thanks capnpayne for the tips , much appreciated
 
Old 04-16-2005, 08:07 AM   #10
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Rep: Reputation: 30
You might also want to check out linuxcommand.org to learn more about the command line.
 
  


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
can't install tarballs liljhand Linux - Software 7 05-16-2004 05:10 PM
Problem in unziping tarballs ssmaitra Linux - Software 5 02-28-2004 12:08 PM
red hat 9 rpms tarballs... install snype Linux - Newbie 1 09-02-2003 05:29 PM
Tarballs Carlip Linux - Distributions 3 08-21-2003 01:47 PM
i can't install tarballs /w mandrake BMXmonkey87 Linux - Newbie 1 07-24-2001 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:44 PM.

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