LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 10-05-2011, 08:57 AM   #1
siddiqui_1985
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Rep: Reputation: 0
Can not access my usb files in arch linux


Hi every one!!!

i have a problem...i can not access my files in usb on arch linux...

i freshly installed arch linux and i want to install my downloaded packages which were previously download by pacman.. i dont want to download them again so i copied every thing from

/var/cache/pacman/pkg into my usb folder name packages(dir in my usb).

well i succeeded mounting my usb, but when i changed my dir to my packages folder in my usb

# cd packages

it gives my error:
-bash: cd: Packages: No such file or directory...

any help on this ???


Thanks
 
Old 10-05-2011, 09:22 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Do you have the case correct? Linux file systems are case sensitive, so Packages, packages and PACKAGES would refer to three different directories. Apart from that, are you in the directory where you mounted the USB stick? If not, then change to the correct directory first (or give the full path to the directory you want to get to). You can use the command "pwd" to see which directory you're in and can use "ls" to see the files/directories in the current directory (if you don't give any options).
 
Old 10-05-2011, 09:24 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
-bash: cd: Packages: No such file or directory...
Are you sure Packages is with kapital "P"?
Please post the output from
Code:
ls
on the mounted usb

Kind regards
 
Old 10-06-2011, 12:27 AM   #4
siddiqui_1985
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Sorry for late reply..

never mind i rebooted my vbox ang again mounted mu usb disk and it worked...

again i want to ask how to install these packages ??

should i have to use "make" to compile them???


thanks
 
Old 10-06-2011, 02:24 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
should i have to use "make" to compile them???
Depends what you want to install.
Take a look at:
https://wiki.archlinux.org/index.php/Pacman

Kind regards
 
Old 10-06-2011, 09:17 AM   #6
siddiqui_1985
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
i have packages downloaded from previously installed arch linux.
"pacman -S xyz"

i copied every package from /var/cache/pacman/pkg, and these files are ".pkg.tar.xz" format

when i use "pacman -U /mnt/usb/Packages/pkg/xyx.pkg.tar.xz" , it gives me error

"/mnt/usb/Packages/pkg/xyx.pkg.tar.xz can not open package file...

what should i do?? am i doing something wrong ??

Last edited by siddiqui_1985; 10-06-2011 at 09:23 AM.
 
Old 10-06-2011, 09:25 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
please post the output from
Code:
ls -l /mnt/usb/Packages/pkg/
Kind regards
 
Old 10-06-2011, 09:38 AM   #8
siddiqui_1985
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Here is the output
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	55
Size:	33.9 KB
ID:	8134  
 
Old 10-06-2011, 09:44 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Do you have the correct permissions on
Code:
/mnt/usb/Packages/pkg/
Can you copy the file from usb to your drive?

Kind regards
 
Old 10-06-2011, 09:47 AM   #10
siddiqui_1985
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
oh yes i did copy them in actual folder in /var/cache/pacman/pkg folder and it does copy all files in there (sorry for my english)
 
Old 10-06-2011, 09:50 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Can you install from
Code:
/var/cache/pacman/pkg
Kind regards
 
Old 10-06-2011, 12:15 PM   #12
siddiqui_1985
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
no i dont

when i try to install

pacman -U /var/cache/pacman/pkg/gnome-desktop-3.0.2-1-i686.pkg.tar.xz

error: ' /var/cache/pacman/pkg/gnome-desktop-3.0.2-1-i686.pkg.tar.xz' : cannot open Package file
 
Old 10-09-2011, 11:01 AM   #13
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Moved: This thread is more suitable in <Arch> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
How access other files in a bootable linux usb flashdrive? archieval Linux - Newbie 3 06-08-2011 02:30 AM
Access denied to all files in Arch Jeteroll Linux - General 2 12-13-2010 07:55 PM
Wish to access files in USB pen drive in Ubuntu Linux Vasudevmukherjee Linux - Newbie 4 07-16-2010 01:59 PM
Can't download files in my Arch Linux Mad_Tiger Linux - Networking 6 08-28-2008 07:46 AM
USB WLAN in Arch linux? oudent Linux - Wireless Networking 0 08-25-2003 01:34 PM

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

All times are GMT -5. The time now is 12:34 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