Installing rpm to different root causing problems [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP

up vote
0
down vote

favorite

I have a clean install of linux on a flash drive. I need to install rpms on it without ever booting to the drive. This is what I’ve tried so far:

First I copied the entire drive over using cp /dev/sdb /home/linux.img
I then followed the instructions here https://askubuntu.com/questions/69363/mount-single-partition-from-image-of-entire-disk-device to mount the root partition of the image to /mount
Then I used rpm -r /mount -i name_of_pkg.rpm

It gave me a bunch of errors that says directories don’t exist, permission denied, etc.

I then tried the same process except I used chroot /mount instead of the -r option and installed the rpms that way, which gave me the exact same errors.

Simply booting up to the drive and installing the rpms that way works completely fine, so I’m really not sure what’s going on. Is there perhaps a better way of doing this?

share|improve this question

closed as unclear what you’re asking by Ipor Sircer, Jeff Schaller, X Tian, thrig, Stephen Kitt Nov 28 at 20:47

Please clarify your specific problem or add additional details to highlight exactly what you need. As it’s currently written, it’s hard to tell exactly what you’re asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1

    what are the bunch of errors, exactly?
    – thrig
    Nov 28 at 0:48

  • 1

    You certainly seem to be going about this the hard way. First, you really should not install .rpm on a .deb system. Second why not do this live? If not live use a chroot. Why do you need to copy the file system to do any of this? And last if you need help post the error messages.
    – Panther
    Nov 28 at 3:31

up vote
0
down vote

favorite

I have a clean install of linux on a flash drive. I need to install rpms on it without ever booting to the drive. This is what I’ve tried so far:

First I copied the entire drive over using cp /dev/sdb /home/linux.img
I then followed the instructions here https://askubuntu.com/questions/69363/mount-single-partition-from-image-of-entire-disk-device to mount the root partition of the image to /mount
Then I used rpm -r /mount -i name_of_pkg.rpm

It gave me a bunch of errors that says directories don’t exist, permission denied, etc.

I then tried the same process except I used chroot /mount instead of the -r option and installed the rpms that way, which gave me the exact same errors.

Simply booting up to the drive and installing the rpms that way works completely fine, so I’m really not sure what’s going on. Is there perhaps a better way of doing this?

share|improve this question

closed as unclear what you’re asking by Ipor Sircer, Jeff Schaller, X Tian, thrig, Stephen Kitt Nov 28 at 20:47

Please clarify your specific problem or add additional details to highlight exactly what you need. As it’s currently written, it’s hard to tell exactly what you’re asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1

    what are the bunch of errors, exactly?
    – thrig
    Nov 28 at 0:48

  • 1

    You certainly seem to be going about this the hard way. First, you really should not install .rpm on a .deb system. Second why not do this live? If not live use a chroot. Why do you need to copy the file system to do any of this? And last if you need help post the error messages.
    – Panther
    Nov 28 at 3:31

up vote
0
down vote

favorite

up vote
0
down vote

favorite

I have a clean install of linux on a flash drive. I need to install rpms on it without ever booting to the drive. This is what I’ve tried so far:

First I copied the entire drive over using cp /dev/sdb /home/linux.img
I then followed the instructions here https://askubuntu.com/questions/69363/mount-single-partition-from-image-of-entire-disk-device to mount the root partition of the image to /mount
Then I used rpm -r /mount -i name_of_pkg.rpm

It gave me a bunch of errors that says directories don’t exist, permission denied, etc.

I then tried the same process except I used chroot /mount instead of the -r option and installed the rpms that way, which gave me the exact same errors.

Simply booting up to the drive and installing the rpms that way works completely fine, so I’m really not sure what’s going on. Is there perhaps a better way of doing this?

share|improve this question

I have a clean install of linux on a flash drive. I need to install rpms on it without ever booting to the drive. This is what I’ve tried so far:

First I copied the entire drive over using cp /dev/sdb /home/linux.img
I then followed the instructions here https://askubuntu.com/questions/69363/mount-single-partition-from-image-of-entire-disk-device to mount the root partition of the image to /mount
Then I used rpm -r /mount -i name_of_pkg.rpm

It gave me a bunch of errors that says directories don’t exist, permission denied, etc.

I then tried the same process except I used chroot /mount instead of the -r option and installed the rpms that way, which gave me the exact same errors.

Simply booting up to the drive and installing the rpms that way works completely fine, so I’m really not sure what’s going on. Is there perhaps a better way of doing this?

linux centos software-installation rpm

share|improve this question

share|improve this question

share|improve this question

share|improve this question

edited Nov 28 at 7:00

Rui F Ribeiro

38.4k1477127

38.4k1477127

asked Nov 28 at 0:41

mindnertia

1

1

closed as unclear what you’re asking by Ipor Sircer, Jeff Schaller, X Tian, thrig, Stephen Kitt Nov 28 at 20:47

Please clarify your specific problem or add additional details to highlight exactly what you need. As it’s currently written, it’s hard to tell exactly what you’re asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

closed as unclear what you’re asking by Ipor Sircer, Jeff Schaller, X Tian, thrig, Stephen Kitt Nov 28 at 20:47

Please clarify your specific problem or add additional details to highlight exactly what you need. As it’s currently written, it’s hard to tell exactly what you’re asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1

    what are the bunch of errors, exactly?
    – thrig
    Nov 28 at 0:48

  • 1

    You certainly seem to be going about this the hard way. First, you really should not install .rpm on a .deb system. Second why not do this live? If not live use a chroot. Why do you need to copy the file system to do any of this? And last if you need help post the error messages.
    – Panther
    Nov 28 at 3:31

  • 1

    what are the bunch of errors, exactly?
    – thrig
    Nov 28 at 0:48

  • 1

    You certainly seem to be going about this the hard way. First, you really should not install .rpm on a .deb system. Second why not do this live? If not live use a chroot. Why do you need to copy the file system to do any of this? And last if you need help post the error messages.
    – Panther
    Nov 28 at 3:31

1

1

what are the bunch of errors, exactly?
– thrig
Nov 28 at 0:48

what are the bunch of errors, exactly?
– thrig
Nov 28 at 0:48

1

1

You certainly seem to be going about this the hard way. First, you really should not install .rpm on a .deb system. Second why not do this live? If not live use a chroot. Why do you need to copy the file system to do any of this? And last if you need help post the error messages.
– Panther
Nov 28 at 3:31

You certainly seem to be going about this the hard way. First, you really should not install .rpm on a .deb system. Second why not do this live? If not live use a chroot. Why do you need to copy the file system to do any of this? And last if you need help post the error messages.
– Panther
Nov 28 at 3:31

active

oldest

votes

active

oldest

votes

active

oldest

votes

active

oldest

votes

active

oldest

votes

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *