LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-23-2007, 02:14 AM   #1
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Rep: Reputation: 30
Unhappy Moving packages - linux command structure


I have done a little research on how the basic command structure works with Linux - with some success. Being a Newbie, new problems turn up nearly every day which causes the old heart to become agitated at times. At the moment I work as root because, I am the only user on the computer - and that I haven't got around to creating a user profile yet. After following tips from the forum and general searches on the net I have been able to download packages onto the desktop and create directories for them - and then moving those packages into directories before unpacking and installing depending on the package format.

My problem at the moment is I downloaded the latest version of wine-0.9.35-i486-1kjz.tgz This file I downloaded to desktop as usual and tried to move it to a directory that I had created before installing it. Well, as you guessed it, I couldn't move it for some reason. I kept on getting "directory doesn't exist" or similar information. I was wondering about the rights as root for moving packages of different formats. I created a directory in /usr/local - which I just called pkg hence mkdir /usr/local/pkg as usual this went ok, but when i tried the following command the package stood still on the desktop "mv desktop/wine-0.9.35-i486-1kjz.tgz/usr/local/pkg/

Can anyone shed some light on my problem - not forgetting that I am a Newbie and I have learned all I know from the internet and friends. Maybe I am doing something totally wrong. Please, please point me int the right direction.

bookie
 
Old 04-23-2007, 03:00 AM   #2
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
Quote:
"mv desktop/wine-0.9.35-i486-1kjz.tgz/usr/local/pkg/
no space there, it must be as
mv desktop/wine-0.9.35-i486-1kjz.tgz /usr/local/pkg/wine-0.9.35-i486-1kjz.tgz

Quote:
I haven't got around to creating a user profile yet
useradd nameoftheuser
is the command to add a user

well which distro r u using?most of the them have a graphical tool for such purpose!
In fedora go system->Administration->UserandGroups.

regards,
Nirmal Tom
 
Old 04-23-2007, 03:00 AM   #3
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
The first thing I notice is you typed in the mv command without a space between the files. The syntax would be "mv /original/file /destination/file".
Also remember that Linux is case sensitive. On most distros, the desktop folder is in /home/username/Desktop (btw, the command you issued would only work if you were in the home directory. If you run as root, it should be in /root/Desktop I think...
By the way, what distro are you using? I'm assuming it's slackware, as it usually archives it's packages like that; in this case, you don't even need to move it, you can install from any dir with installpkg, and then in 99% of the cases you won't need the original package. (I might be wrong)
 
Old 04-23-2007, 04:01 AM   #4
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Wink re-moving packages

Thanks guys, Nirmaltom was on the right track. I made a typing error on my thread. desktop should have been a capital D . I copied from Nirmaltom, but received "cannot stat" as a reply, so I changed the small d for a capital D and then it moved.
 
Old 04-23-2007, 04:08 AM   #5
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
hi,

trying too install from source package is good,but the ease of use is really considering rpm,dpkg etc packages

regards,
Nirmal Tom.
 
Old 06-23-2007, 04:18 AM   #6
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Hi nirmaltom, sorry, I didn't see your extra post until now. I appreciate the advice.

Thanks a bunch.

bookie
 
Old 06-24-2007, 08:03 AM   #7
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
Quote:
I didn't see your extra post until now
hi,
i thought u suceeded from ur previous post.Do u still have any problems in installing wine?
regards,
Nirmal tom.
 
Old 07-09-2007, 03:47 PM   #8
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
update

Hi again, no more problems.

Thanks again.

bookie
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Moving certain files recursively preservice folder structure DigiTalk Linux - Newbie 11 09-08-2005 08:04 AM
Moving back an rpm packages revision louisb Linux - Enterprise 3 07-09-2005 04:24 AM
Can't install packages after moving /var zag_zag Debian 4 11-26-2004 05:21 AM
command for moving via console psa Linux - Newbie 1 08-24-2004 02:50 AM
is there a way to traverse a directory structure & execute a command hemlock Linux - Newbie 1 09-07-2002 12:22 AM


All times are GMT -5. The time now is 09:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration