Categories
Linux Mastering Development

why pip version isn’t the latest when installing pip via yum

we try to install the latest version of pip by the following ( we have rhel 7.6 server with python 2.7 ) yum install python27-python-pip Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager rhel-7-server-rpms | 3.5 kB 00:00:00 rhel-server-rhscl-7-rpms | 3.4 kB 00:00:00 (1/6): rhel-7-server-rpms/7Server/x86_64/group | 631 kB 00:00:00 (2/6): rhel-7-server-rpms/7Server/x86_64/updateinfo | 3.9 MB 00:00:01 (3/6): rhel-server-rhscl-7-rpms/7Server/x86_64/group […]

Categories
Linux Mastering Development

failure: repodata/repomd.xml from libnvidia-container: [Errno 256] No more mirrors to try

I followed the instructions from https://developer.nvidia.com/cuda-80-ga2-download-archive sudo rpm -i cuda-repo-rhel7-8-0-local-ga2-8.0.61-1.x86_64-rpm sudo yum clean all sudo yum install cuda Now I get this error at the last step: [jalal@goku GoodNews]$ sudo yum install cuda [sudo] password for jalal: Loaded plugins: aliases, changelog, copr, fastestmirror, kabi, langpacks, nvidia, priorities, product-id, search-disabled-repos, subscription- : manager, tmprepo, verify, versionlock […]

Categories
Linux Mastering Development

yum + how to captured all rpm that was installed by yum update

we performed upgrade from rhel 7.2 to rhel 7.6 the upgrade was by yum update ( from redhat repertoires ) subscription-manager release –set=7.6 subscription-manager repos –enable "rhel-*-optional-rpms" –enable "rhel-*-extras-rpms" –enable "rhel-ha-for-rhel-*-server-rpms" and then we performed yum update we can see also the update from yum history yum history Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager ID […]

Categories
Linux Mastering Development

Using yum versionlock to only allow patch updates?

I am running RHEL7.6 and I need to lock my bind install to 9.11. Currently, we are at 9.11.4, and I would like to take any additional patches for 9.11 that are released. I found the yum versionlock plugin, but after what I thought would just lock it to major.minor, it appears to lock the […]

Categories
Mastering Development System & Network

yum update doesn’t update the package

I’m on RHEL 7. Security team suggested me to update curl and dbus packages. When I try yum update , it says Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. No packages marked for update I verified that the packages are old […]

Categories
Mastering Development System & Network

Not able to install docker on redhat

I searched for many links, they are showing only for centos even though the title is for RHEL also. My OS details: cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo) uname -r 3.10.0-693.58.1.el7.x86_64 I ran this to add repo sudo yum-config-manager –add-repo https://download.docker.com/linux/rhel/docker-ce.repo THen this sudo yum install docker-ce But giving this error. […]

Categories
Linux Mastering Development

32-bit libraries GCC for RHEL/CentOS 7

yum groupinstall “Compatibility Libraries” Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager There is no installed groups file. Maybe run: yum groups mark convert (see man yum) Warning: Group compat-libraries does not have any packages to install. Maybe run: yum groups mark install (see man yum) No packages in any requested group available to install or update […]

Categories
Database Development

How to avoid tempdb spill

I have several tempdb spills in queries which are currently serving business purposes. I am told by online searching that tempdb spills should never be ignored as they can cause performance problems. It’s still a bit unclear to me as to why that is. Since I have also read that SQL Server by itself will […]

Categories
Mastering Development System & Network

no kubelet kubeadm kubectl packages

I am going through the kebernetes install docs (https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/) and I am at the point where I am suppose to install the kubelet, kubeadm and kubectl RPMs. I created this yum repo: [root@stg-003 ~]# cat /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-$basearch enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg exclude=kubelet kubeadm kubectl Then I execute this yum command: [root@stg-003 ~]# […]

Categories
Mastering Development

big data query mongodb, aggregation, single index or compound index

i am trying to speed up a query that im performing to a collection that contains more than 10 million of documents. An example of document looks like this { nMove: 2041242, typeMove: ‘Sold’, date: “2016-05-18T16:00:00Z”, operation: ‘output’, origin: { id: ‘3234fds32fds42’, name: ‘Main storage’, }, products: [{ id: ‘342fmdsff23324432’, name: ‘Product 1’, price: 34, […]