How to do this linux command in windows? - linux

Basically I'm trying to install libpq-dev but I've only found ways to do it in Linux. I've tried to install Cygwin but it takes quite a long time here at work, I currently don't have permanent internet connection at home, so I can't download at home.
Anyways, here is the Linux command that I'm trying to do in Windows:
sudo apt-get install -y libpq-dev
Please pardon my noobness in using the command-prompt.

There is a manual for this.
To install from package (recommended):
Microsoft Windows
Jason Erickson maintains a packaged Windows port of Psycopg with installation executable. Download. Double click. Done.

Related

vs code not installing on Chromebook

I was trying to install vs code on Chromebook with Linux but i get it off the website and go into the file and it says "apt is not install able" and things like it for about five rows of text I hope someone knows the answer.
Try beginning with sudo apt install as opposed to apt install. Linux can be wishy washy when it comes to installs in the terminal.

wget command not found on linux server

I have a linux server (completely new, web hosting, nothing is installed into it), and want to use a "wget" command. Currently, it is not found. Kernel version 2.6.32-896.16.1.lve1.4.54.el6.x86_64
I am completely new to linux, tried to solve this issue by myself, but couldn't do it. I log in into this linux server via PuTTY via my Windows OS laptop.
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
To get "wget" to work, I will need to install it. I guess I will need to install first "sudo" and/or "apt" and/or "apt-get". But couldn't do it. Please give me a short list of steps in which order to install them.
Given your kernel version, it looks like your Linux distribution is CentOS 6 or RHEL 6. Try installing wget with this command:
yum install wget
You must be root when you run this command.
Incase you using Debian version of Linux, use the following:
sudo apt-get install wget
From kernel version, it looks like you are using RHEL/Centos 6.
Please check -
https://centos.pkgs.org/6/centos-x86_64/wget-1.12-10.el6.x86_64.rpm.html
If the mentioned dependencies exist in your system, you can directly fire the rpm command
rpm command guide -
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html
If it doesn't work, you need to use yum command. (You need to configure yum command first, if not configured already)
yum install wget
To configure yum command in centos6 -
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
Note - you need to be root user for above activities.

How do I install libleveldb-dev on windows for Python?

How to install libleveldb-dev (leveldb development libraries) on windows? I need this to be downloaded so I can install plyvel. Thank you in advance I hope someone is familiar with this process.
The way to install this on Linux is :
sudo apt-get install libleveldb-dev
But I need to install this on windows. Is there a similar easy way to do this in the windows command prompt? Related Link: https://plyvel.readthedocs.io/en/latest/installation.html#build-and-install-plyvel
Just answering for the next ones, there is a version of plyver just for windows that doesnt require all this suffering. just try: "pip install plyvel-win32" if you have the visual libraries should work.

Install package managers over SSH & FTP

i have an device running on Pure Linux, there is no Package installer installed on that, the only thing i have is SSH and therefore also an Terminal. Commands like apt-get, dpkg, yum dont work.
How do i install apt-get over SSH? I've saw some suggestions that use yum, make or dpkg to install apt-get, but since i've neither of them...
For debian based systems exists a tool called apt-offline. That's perfect in that scenario.
https://wiki.ubuntuusers.de/apt/apt-offline/

download emacs binary for linux?

I am trying to install emacs in offline computer.
but every time I try to build from the source and install it, it doesn't make it.
too complicated.
(terminal ./configure => error try with --without-makeinfo,
after a while, error try with --without-x,
after a while, error can't find emacs version...(and I also want to use X version))
so I want to download emacs binary file but I can't find for linux one.
where can I download pre-build binary emacs 23.3(lastest) for ubuntu?
I can download emacs 23.3 binary file for windows but not for ubuntu.
You could get the deb file directly from http://archive.ubuntu.com/ubuntu/pool/universe/e/emacs-snapshot/emacs-snapshot_20090909-1_amd64.deb and then try to install it using dpkg -i but there will probably be dependencies which you might miss. I'd suggest you try an apt-get install emacs-snapshot on your target machine. It will tell you all the packages it needs to fetch (along with URLs). Fetch all of them from a machine connected to the net and then dpkg -i those packages.
You can try the Ubuntu Emacs PPA here.
type in terminal
apt-get update
apt-get install emacs
for compile, are you download last version ? http://ftp.gnu.org/pub/gnu/emacs/
you can download deb file here
http://ir.archive.ubuntu.com/ubuntu/pool/main/e/emacs23/

Resources