Linux downloads and installs VSCode and how to programmatically output the current time
This article mainly explains Linux download and install VSCode and how to use programming to output the current time, the content is clear, interested friends can learn, I believe it will be helpful after reading.
Which parameter is used by the rpm command to install the software:-I
Which parameter is used by the rpm command to delete the software:-e
The directory where the yum installation source configuration file is located is: / etc/yum.repo.d
The suffix name of the yum installation source profile must be: repo
The yum commands that can delete software packages are: yum remove; yum erase
When using yum for software installation, if you want yum to be installed directly, you do not need to manually confirm that you can use the parameter:-y
Download and install VSCode according to your own Linux system (different distributions, different software installation commands)
Sudo rpm-- import https://packages.microsoft.com/keys/microsoft.asc
Sudo sh-c 'echo-e "[code]\ nname=Visual Studio Code\ nbaseurl= https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > / etc/yum.repos.d/vscode.repo'
Yum check-update
Sudo yum install codecode-version
Use programming to output the current time
Source code
Import datetimet1 = datetime.datetime.now () print (T1)
Running
After reading the above content, do you have a further understanding of Linux downloading and installing VSCode and how to use programming output current time? if you want to learn more, please follow the industry information channel.