Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I reinstall all the packages on another machine? #9597

Closed
xahon opened this issue Jan 9, 2020 · 9 comments
Closed

How do I reinstall all the packages on another machine? #9597

xahon opened this issue Jan 9, 2020 · 9 comments
Assignees
Labels
category:question This issue is a question

Comments

@xahon
Copy link
Contributor

xahon commented Jan 9, 2020

I noticed that there are no changes after installing a package. So, I installed sdl2, for instance, and want to switch to another computer to continue development, but I has to install it again and all my coworkers need to do that too?

@xahon xahon added the category:question This issue is a question label Jan 9, 2020
@JackBoosY JackBoosY self-assigned this Jan 9, 2020
@JackBoosY
Copy link
Contributor

You can export them[1] and import them[2] to new machine.

[1]. .\vcpkg export <portname>
[2]. .\vcpkg import <packagepath>

@xahon
Copy link
Contributor Author

xahon commented Jan 9, 2020

@JackBoosY you need to export/import all packages one by one which is a lot of work to do. Making .sh/.bat scripts will force to port and then maintain them both in at least 2 different platforms to keep them working

@xahon
Copy link
Contributor Author

xahon commented Jan 9, 2020

Also, export requires some additional parameters. I don't know what to choose --raw --nuget --ifw --zip --7zip --chocolatey

@JackBoosY
Copy link
Contributor

@xahon Please see documentation here.

Thanks.

@xahon
Copy link
Contributor Author

xahon commented Jun 13, 2020

overcomplicated stuff

@JackBoosY
Copy link
Contributor

And we are adding feature binarycaching to vcpkg, see #11204.

@xahon
Copy link
Contributor Author

xahon commented Jun 19, 2020

@JackBoosY Ok, I reread the doc. Export works only for a single platform, e.g. when I transfer my project from windows PC to windows PC (with the same arch), when I transfer project from Windows PC to Linux PC I should also jot down all the packages my project uses, then reinstall them all on another platform and export them again? How do you share your vcpkg project with your friend that uses other OS than you?

...
Binary caching works for a single platform too and solves another problem to reduce compilation times, doesn't it?

@JackBoosY
Copy link
Contributor

@xahon Normally we use the export function, but now we don't have all options.

@JackBoosY
Copy link
Contributor

Now, we have binary caching.
You can copy it to the new machine through the cache path prompted in the console, and then use it through the install command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants