#[SOLVED] Copying files to VM

145 messages · Page 1 of 1 (latest)

spring slate
#

simple inefficient solution: Drag and Drop
I was trying to do a clean install for my vm without using my internet. but cloning my system is hard tbh. so can i like drag and drop zip file of the packages then install them?

rancid jasper
#

using a shared drive would be easier

spring slate
#

how

rancid jasper
#

unless that's what you mean

spring slate
#

i want to drag zip files to my vm

rancid jasper
#

and what VM software do you use?

spring slate
#

Virt-manager with QEMU

rancid jasper
#

well, there are ways to do that, but i won't guide you cuz i'm going to bed

spring slate
#

ok gn

#

👋

#

go to sleep

#

be healthy

rancid jasper
haughty tundraBOT
#

fluxdev_ received a thank you cookie!

livid kite
#

what did you try

spring slate
#

i tried compressing the file to zip

#

then drag to vm

#

and it auto-copy to downloads directory

#

rn im uncompressing it

#

what command do i use to update all the packages? from the files?

livid kite
#

what are the files @spring slate

#

a bunch of .tar.gz?

spring slate
#

ye

livid kite
#

pacman -U /path/to/files/*.tar.gz

spring slate
#

sry i meant .pkg.tar.zst and .pkg.tar.zst.sig

livid kite
#

       -U, --upgrade
           Upgrade or add package(s) to the system and install the required dependencies from sync repositories. Either a URL or file path can be specified.
           This is a “remove-then-add” process. See Upgrade Options below; also see Handling Config Files for an explanation on how pacman takes care of
           configuration files.

#

idk what those are

#

or how you made them

spring slate
#

/var/cache/pacman/pkg

#

idk tbh

#

i remember seeing that this is the directory that has the packages

#

so i thought its this one

livid kite
#

ok those are a differnt compressoin

#

try pacman -U /path/to/files/*.tar.zst

#

@spring slate

spring slate
#

ok

#

idk how to copy from vm

#

output

#

of commands and stuff

#

it keeps saying up-to-date --reinstalling

#

and duplicate-target or smth

livid kite
#

so its installed then?

#

... solved

radiant roseBOT
#

#17680 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: http://0x0.st/8Rt9.png
Thank you

spring slate
#

its still doing

#

idk if it will work or no

livid kite
#

sounds like you are installing the packages from the archive files

spring slate
#

nope didnt work

livid kite
#

?

spring slate
#

doesnt even install stuff

#

do i need the .sig files? or smth

livid kite
#

wdym its not installing

#

it's literally saying "reinstalling"

spring slate
#

but its not asking me to do the thing

#

like y/n

livid kite
#

try one of the packages you installed

spring slate
#

ok

livid kite
#

and you should read the error

spring slate
#

desnt work

livid kite
#

show pic

spring slate
#

k

livid kite
#

what about setxkbmap

spring slate
#

let me test that. idk what that is

candid stirrup
#

like, what's your goal

spring slate
#

cuz i dont have internet

#

not much left

#

i cant download all my packages

candid stirrup
#

you went from "I need to share files with my KVM VM" to "installing files from local sources"

spring slate
#

ye

#

that was my main goal

#

in the #quick-questions

#

but they said to ask here

livid kite
#

yes because its not a quick question

candid stirrup
spring slate
#

so what do i do

candid stirrup
#

installing 1 package may be not enough

spring slate
#

wdym 1 package

candid stirrup
#

packages need dependencies

spring slate
#

oh

#

is there a --needed in -U?

#

or a way to do it?

livid kite
#

look like they copied all their packages though @candid stirrup

candid stirrup
#

every time you install with pacman, it resolves the dependencies
using local files also needs the same

spring slate
#

but it took me a while to compress the files T^T

candid stirrup
#

so, if you install 1 package for an app, you still need to figure out the dependencies

spring slate
#

is there a better way to install the packages without downloading?

livid kite
spring slate
#

does it need internet

candid stirrup
#

idk about local packages, but I do know you can have your own repo

livid kite
#

oh maybe you can put your files in your cache

#

then pacman -S packagename

spring slate
#

oh

#

smart

candid stirrup
#

like, when I tried making my own offline arch iso, I managed to make pacman to use the local repo

#

tho I don't recall the steps, but it is possible

#

but you need a system with internet to achieve it

spring slate
#

where is the cache folder for pacman

#

i will try what akira said

candid stirrup
#

what's the VM for?

#

and why no internet

spring slate
spring slate
#

like hyprland and stuff

candid stirrup
#

testing what

spring slate
#

i wanna try it

candid stirrup
#

yes but what's the host OS

spring slate
#

and i wanna run apps there to test for future

spring slate
#

endeavourOS to be specific

livid kite
#

put them in the same place

#

in your vm

spring slate
#

ok

candid stirrup
#

how about you make your own custom arch iso with offline install?

livid kite
#

bruh if you just want to test hyprland install it and try it

candid stirrup
#

so from a system with internet, archiso downloads all the packages to a local cache, then it integrates them to an ISO

livid kite
#

hyprland has problems in VM btw

#

so good luck

candid stirrup
#

it will not work

livid kite
#

you don't need a VM to try other desktops

spring slate
livid kite
#

holy cow what a big XY problem

spring slate
livid kite
#

next time state your goal

candid stirrup
#

.s xypronlem

radiant roseBOT
candid stirrup
#

.s xyproblem

radiant roseBOT
# candid stirrup .s xyproblem

What is it?
The XY problem is asking about your attempted solution rather than your actual problem. This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.

What to do about it?

  1. Always include information about a broader picture along with any attempted solution.
  2. If someone asks for more information, do provide details.
  3. If there are other solutions you've already ruled out, share why you've ruled them out. This gives more information about your requirements.

More information: http://xyproblem.info/

livid kite
candid stirrup
livid kite
#

... solved

radiant roseBOT
#

#17680 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: http://0x0.st/8Rt9.png
Thank you

spring slate
#

ok

#

im just gonna wait for it to work. if it does. i i will rename the post and add [solved]

livid kite
#

you managed to copy files to your VM

#

make a new thread if you have another problem

spring slate
#

ok

#

i will ping u there