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

Is there a way to port my scoop from current to new machine? #4508

Closed
Rafeqm opened this issue Nov 11, 2021 · 13 comments
Closed

Is there a way to port my scoop from current to new machine? #4508

Rafeqm opened this issue Nov 11, 2021 · 13 comments

Comments

@Rafeqm
Copy link

Rafeqm commented Nov 11, 2021

I just discover scoop a few days ago, and already installed yesterday. So as of now, I installed curl, python3.10, sudo, and oh-my-posh. The problem is: my dad is gonna buy me a new laptop next week (currently I use my mom's laptop) and I already configured scoop in C:\Users\myTempName\scoop. So say I've already get my new laptop, can I just move my scoop folder to my new laptop at C:\Users\myNewUserName\scoop and add \scoop\shims to PATH? Or are there several other steps I must do?

NOTE: I don't have unlimited data plan/bandwidth, So I don't want to redownload/reinstall everything except scoop itself if needed.

@rashil2000
Copy link
Member

Do this:

  1. Reinstall scoop on new laptop
  2. Copy everything from C:\Users\myTempName\scoop\cache\ to C:\Users\myNewUserName\scoop\cache\
  3. Install your 4 apps. Since everything is in cache, Scoop will not download anything new.

@Rafeqm
Copy link
Author

Rafeqm commented Nov 11, 2021

If I've already installed some python packages like black, flake8, and isort. Should I copy the full ~\scoop instead of just ~\scoop\cache?

@rashil2000
Copy link
Member

Copying the entire folder might cause unknown problems. You can try it, but be warned.

The method I told is error-free.

@niheaven
Copy link
Member

  1. Copy entire scoop dir. (e.g., new dir is D:\Scoop)
  2. Add $env:SCOOP to point to your new location ($env:SCOOP is D:\Scoop)
  3. Add D:\Scoop\shims to $env:PATH and make sure it is before WindowsApps's
  4. Restart your terminal to reload Environment Variables
  5. scoop reset *
  6. All done.

@pratikpc
Copy link
Contributor

Depending on the app, sometimes simple copy paste can also work

@rashil2000
Copy link
Member

@Rafeqm is your problem solved?

@AntonOks
Copy link

Do this:

1. Reinstall scoop on new laptop

2. Copy everything from `C:\Users\myTempName\scoop\cache\` to `C:\Users\myNewUserName\scoop\cache\`

3. Install your 4 apps. Since everything is in cache, Scoop will not download anything new.

Hmmm... shouldn't one also copy ​C:\Users\<user>\scoop\persist then to make sure the previous setting / configs of his app's are also taken over?

@rashil2000
Copy link
Member

Persist can contain files with hardcoded paths (created by packages themselves), so I'm not sure. It depends on the installed apps.

@niheaven
Copy link
Member

Just scoop reset *, it will persist everything again and let them work.

@Rafeqm
Copy link
Author

Rafeqm commented Jan 18, 2022

I got my new laptop now. But after scoop reset *, scoop throws errors with:

.....................
ERROR 'starship ()' isn't installed
ERROR 'sudo ()' isn't installed
ERROR 'Ubuntu-NF ()' isn't installed
ERROR 'UbuntuMono-NF ()' isn't installed
ERROR 'vscode ()' isn't installed
ERROR 'yarn ()' isn't installed
.....................

What is the reason @niheaven ?

@niheaven
Copy link
Member

Does your starship dir contains current and a versioned subdir?

@Rafeqm
Copy link
Author

Rafeqm commented Jan 19, 2022

Yes. I just copy the entire scoop folder which contains all apps I installed to my new laptop. So everything is just the same as before and actually there are more apps I installed.

@niheaven
Copy link
Member

It's strange. Okay, let's check it step by step.

  • What's the output of scoop status?
  • If your cache folder is there, you could install these apps without fresh downloading, so could you try scoop install yarn?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants