hashhar / vscode-universal-installer

A Python script that automatically installs the latest version of Visual Studio Code for any OS
MIT License
4 stars 0 forks source link

Linux installation / package managers #1

Open bgse opened 8 years ago

bgse commented 8 years ago

Something you might consider for the Linux installation process is checking if there are known repos for the users distribution.

At least for Fedora, there is already a COPR, and I suspect there should be more cropping up for other distros as well given some time.

https://github.com/Microsoft/vscode/issues/229

Could prompt the user if they want to install using the repo instead and do it automatically, or just print instructions.

hashhar commented 8 years ago

Thanks for this. I will start working on it once my exams get over. Also, I was looking to extend this to a host of other applications.

PS: Do you by chance have knowledge of any program for Linux (mainly Ubuntu) that allows me to download and install packages meuldntioned in a list. I usually tend to mess up my Ubuntu installation and would like to have a program that sets up my new installation perfectly by reading the packages to be installed from a text file?

bgse commented 8 years ago

Not sure if there is a special program for this purpose, but what you can do is read the list of packages from a text file into a variable, say $mypkgs so that it contains something like 'pkg1 pkg2 pkg3', and then have the package manager install from that variable.

For Ubuntu, that should then be something like

apt-get install $mypkgs

hashhar commented 8 years ago

@bgse I have just started work on this. Just thought I should let you know.