SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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?
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.
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?
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.