dnf cache sync with local repo - rhel

I setup dnf-automatic on RHEL 8.6 and set the apply_updates=no in the /etc/dnf/automatic.conf config file. I can see the packages are being stored in cache /var/dnf/cache. I have a local repo and I want to copy these packages into local repo and then rebuild the repodata. What is the best way to go about doing this? Any ideas are appreciated. Thanks.

Related

GitKraken won't let me open my Private Repository on GitLab

So, in addition to GitKraken won't let me clone from a private repo on GitHub
I get this screen when opening my GitLab Repo:
Anyone got a solution of how to make my Repo 'non-private' or how to make GitKraken let me open this without the Pro Plan?
Already tried:
Generating new SSH Key in GitKraken
Removing Repo, Generate new GitLab connection, Clone Repo
Checked GitLab: GitKraken is an Authorized applications
Git Pull via command line gives no trouble, so no permission issue
...
6.5.1 is the last version to support private repo. You can see the release details at this link https://blog.axosoft.com/gitkraken-v6-0/#pricing-changes OR https://support.gitkraken.com/release-notes/6x/
And you can also download it (Mac version) from Axosoft https://release.axocdn.com/darwin/GitKraken-v6.5.1.zip OR https://release.gitkraken.com/darwin/GitKraken-v6.5.1.zip
I not sure how to turn off the automatic update function, so if you turn off GitKraken completely and reopen it, it will update to the latest version.
=======
Updated
Block IP Address for updating
For MacOS
echo "127.0.0.1 release.gitkraken.com" >> /private/etc/hosts
Windows 10 – “C:\Windows\System32\drivers\etc\hosts”
Linux – “/etc/hosts”
Mac OS X – “/private/etc/hosts”
Installing older version of Gitkraken is the only solution I guess to work on private repo if you want it for free and without student developer pack.
From the release notes, the last version to support private repo is v6.5.1.
Download link:
For windows: https://release.gitkraken.com/win64/GitKrakenSetup-6.5.1.exe
For linux (debian): https://release.axocdn.com/linux/GitKraken-v6.5.1.deb
For linux (tar.gz): https://release.axocdn.com/linux/GitKraken-v6.5.1.tar.gz
For mac: https://release.axocdn.com/darwin/GitKraken-v6.5.1.zip
Download old version of app
Official download URL for macOS. For Win you have link on Comments in this answer
EDIT:
OMG! I found it.
There is auto patcher who was build over yarn
https://github.com/5cr1pt/GitCracken
Work like a sharm 💪
Note:
It take a decent time to install, so be patient.
I had the same problem, this what I found:
They say, and I quote -
This was a licensing change we made 3 months ago. When we made the
change, we gave all existing users a 3 month free trial, which are all
expiring this week. Sounds like yours is one of them
BTW worth noting that if you're a student, you can use GitKraken for free:
https://www.gitkraken.com/student-resources
My solution is to uninstall GitKraken and install Fork, a very similar program with all the options that I have used previously in GitKraken. It's free and has a dark mode too :-)
(window users)
In your %appdata%/../Local/gitkraken, remove latest gk version you just updated, remove updater & use the previous version (& maybe buy a license)
(Windows solution)
I think this solution should work:
Since Private repo is moved to paid plan after v6.5.1 so make sure you download an earlier version (For example Windows: 5.0.4 - Change version number to any desired one)
If you had a newer version installed, get rid of it like this:
Uninstall that version
Go to C:/Users/USERNAME/appdata/local/ and remove GitKraken
Go to C:/Users/USERNAME/appdata/roaming/ and remove .gitkraken
Install the selected older version
Go to C:/Users/USERNAME/appdata/local/gitkraken and rename Update.exe to Update_.exe (Don't remove it. Needed for uninstalling)
Use it
Note: I had issues with some repos even with this solution and that could be because gitkraken saves config file in the repo (which is not shared with remote). So make sure you remove the local project and get it from remote again.
(Note: Newer version obviously contains more features. You may want to purchase a license to be updated and fine, as well as supporting the company)
If you have tried running GitKraken 6.5.1 on a recent version of Ubuntu, you have probably noticed that it has dependencies that can't be satisfied (gvfs-bin). However, you can run it in Docker by building an image for it based on Ubuntu 18.04!
Download the GitKraken package:
wget https://release.axocdn.com/linux/GitKraken-v6.5.1.deb
Create a Dockerfile. Replace YOURUSERNAME with your local username. Replace 1000 with your actual user and group IDs respectively:
FROM ubuntu:18.04
COPY GitKraken-v6.5.1.deb /tmp
RUN apt update && apt install gconf2 gconf-service libgtk2.0-0 libnotify4 libxtst6 libnss3 libxkbfile1 python gvfs-bin xdg-utils xauth libxss1 libasound2 -y
RUN dpkg -i /tmp/GitKraken-v6.5.1.deb
RUN groupadd -g 1000 YOURUSERNAME && useradd -u 1000 -g 1000 YOURUSERNAME
CMD ["/usr/bin/gitkraken", "--no-sandbox"]
Build the Docker image:
docker build -t gitkraken .
Allow Docker to connect to your local XServer:
xhost +local:docker
Run your GitKraken in a container, mapping your local home directory into the container. Again, replace your username and IDs:
docker run -ti --rm -e DISPLAY=$DISPLAY --network=host -v /home/YOURUSERNAME:/home/YOURUSERNAME --user 1000:1000 gitkraken
Uninstall and use an older version of gitkraken. V5.0.4 will continue to work as always.
Gitkraken does not update automatically in Linux, so Axosoft can't shove it down your throat. For Windows, there's SourceTree. Consolations to Mac users.
I have the GitKraken individual plan and can only use my account on one computer.
My laptop displays the same message regarding the private repository and blocks me. I thought that the individual plan would allow my single account on multiple computers.
I have been using GitKraken free version for more than an year. I ran into the same issue recently. I was able to get it working by reinstalling an older version.
Note: You need to do this whenever you restart your computer or Gitkraken.
My solution:
Remove the latest version from (window users) appdata%/../Local/gitkraken
Create a short cut to the folder where the previous version is installed.
Open shortcut
Start executable.
What happens when the update come up again. I will see then.
If anyone is looking for a solid Git linux client, try GitClient, they have an AppImage,
it doesnt have all features of Kraken but very solid,
https://github.com/francescmm/GitQlient
Save your files of Repository - Without Folder (.git)
Create new public repository
Copy and Commit your Files
Open your Repo (Git Kraken).
To expose your project from gitlab, go to Settings => General and select public under the "Visibility, project features, permissions" section.
To open a private repo under GitKraken, subscribe to their licence.

how to run git clone locally

I am new to git and i want to know how to use git repo. generally developers created for use our own.
jus like i want to use any node.js example code : Git Repo Link and i have clone it by git-bash also i have download the .zip file in my local computer. but dont know what is the next step to make it runnable. i want to learn from the code people done on git. i have run
npm install
and after downloading all dependencies in
node_modules
directory. but dont know what is the next process and how to analyse repo to make it work in local. please help.
From the wording in your question, it sounds like you may be confused between git and npm etc.
Git is a source control tool that is able to remotely/locally sync versioned files(changes).
Take a look at the following doc to learn about setting up a new git repo locally without a remote repo setup.
https://git-scm.com/docs/git-init
NPM is a package manager for Node.JS
http://npmjs.com/
To see what others are doing with Git, go take a look at these and clone some: https://github.com/trending
please run below command
git clone https://github.com/lmammino/judo-heroes.git
After that run
npm install

Using linux mirror to host 3rd party RPMs

I'm trying to do something that seems simple in theory, but I can't find the magic search terms for the Google-machine to get any hits.
Basically, we are building a bunch of servers internally (no internet access) so I've created a VM and set up a mirror of our linux distro (Oracle Linux, which is essentially RHEL). The steps I are here for reference:
http://www.oracle.com/technetwork/articles/servers-storage-admin/yum-repo-setup-1659167.html
This is fine, but I'd also like to have access to a few other RPMs (e.g. Chrome, vsftpd etc) that aren't part of the standard distribution, but have to be separately downloaded.
The question is, is there any way to simply "include" these rpms with the mirror that I've already set up? Or do I have to mirror those repos separately? i.e. is there some place I can just drop an rpm and have it found when someone uses my mirror to do "yum install myprogram"
I hope I've explained this ok.
Thanks in advance.
What I'd do is make a separate folder, download the required packages and make a repository with the createrepo command.
Then you need to create a new repo file in /etc/yum.repos.d for your new repo just like in the referenced howto:
[<channel_label>]
name=<Channel Description>
baseurl=http://<repository_server>/yum/<repository path>
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
enabled=1

Automate installation of CentOS 6.4 -minimal with kickstart on a DVD

I am trying to automate installation of CentOS 6.4 -minimal with kickstart on a DVD
Below is my kick start that was auto generated by anaconda
# Kickstart file automatically generated by anaconda.
#version=DEVEL
install
cdrom
lang en_US.UTF-8
keyboard us
network --onboot no --device eth0 --bootproto dhcp --noipv6
rootpw --iscrypted $6$.tHtXJMs5GEzyQRm$52EX5ue3UuFC/zgencUbxuvwHXIPDuLmllkuNs4NRq7/Wa7FsI8ICxwPDsy/KnzSaUfEqfBROLAv0tPMksOhA1
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc America/New_York
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100
%packages --nobase
#core
%end
============================================================
The problem happens when the ks.cfg tries to install packages from Repo that is in DVD
The error I'm getting:
Unable to read package metadata. This may be due to a missing repodata directory. Please ensure that your install tree has been correctly generated.
cannot find a valid baseurl for repo:CentOS
============================================================
If this a bug, is there any other way to automate the installation ?
Is there any alternate solution to Automate the CentOS6.4 minimal?
I have tried removing the line
repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100
Problem still persists
Then I tried changing to something like this
repo --name="CentOS" --baseurl=file:///mnt/source--cost=100
Problem still persists
What am i missing to include .... ???
I've faced the same problem today, but after commenting the line it worked :)
#repo --name="CentOS" --baseurl=cdrom:sr1 --cost=100
Why don't you use system-config-kickstart gui tool for creating your own file and then use mkisofs to create your own iso too.
http://www.centos.org/docs/4/html/rhel-sag-en-4/ch-redhat-config-kickstart.html
The above link would be helpful.
Thanks & Regards,
Alok Thaker
From the RHEL 7 Kickstart documentation:
url Install from an installation tree on a remote server via FTP, HTTP, or HTTPS.
--url= - The location to install from. Supported protocols are HTTP, HTTPS, FTP, and file.
--mirrorlist= - The mirror URL to install from.
--proxy= - Specify an HTTP, HTTPS or FTP proxy to use while performing the installation.
--noverifyssl - Disable SSL verification when connecting to an HTTPS server.
You have to set url property, like:
url --url=http://mirror.centos.org/centos/7.0.1406/os/x86_64/
There are a handful of Packer templates that leverages kickstart scripts to create Centos VMs. One of those is the Bento Project.
You did not have a space between the second and third parameter:
repo --name="CentOS" --baseurl=file:///mnt/source/--cost=100
Correct:
repo --name="CentOS" --baseurl=file:///mnt/source/ --cost=100

grunt-init not creating any file(s)

I probably missed something here. I'm using Node 0.10.1 on Win7/64bit and installed grunt 0.4.1 with
npm install grunt
npm install -g grunt-cli
npm install -g grunt-init
Then I tried to install a template while in folder %USERPROFILE%
git clone git#github.com:gruntjs/grunt-init-gruntfile.git ~/.grunt-init/gruntfile
But git wants a passphrase for key [current folder]. So I just created a folder
%USERPROFILE%\.grunt-init\gruntfile\
and copied
https://raw.github.com/gruntjs/grunt-init-gruntfile/master/template.js
to it. Now I switched to the project folder and was able to start grunt-init with
grunt-init gruntfile
DOM involved? n
files concatenated or minified? Y
package.json? n
any changes? N
Process ends with "Done, without errors", but no file ist created, or at least I can't find it.
dont know how to clone into your userhome on windows, but IMPORTANT(!) you also need to copy the whole "root" directory ( https://raw.github.com/gruntjs/grunt-init-gruntfile/master/root) to '%USERPROFILE%.grunt-init\gruntfile\'
you know that this init-template will just create a gruntfile.js for you? (inside the root-directory you can see that). if you want to create a node-module, jquery-plugin and so on, use one of the other templates (grunt-init-node, grunt-init-jquery) and so on.
creating your own template is easy. just create a new folder in '%USERPROFILE%.grunt-init' with your template-name. add the template.js. add a root-directory where all the files are which you want to be copied, maybe add a rename.json (for folder and file-renamings) and maybe change some stuff in the template.js.
I think you are have few a different issues here - from your comments it looks like you are using a Windows.
The first issue is that you can't clone the repository. Having tried this myself, I found the problem was fixed by setting up a valid ssh key on my github account. So to clone this repository you need to create a github account and install ssh keys on both your machine and your github account. Github's documentation on how to do this is very good and can be found here for Windows https://help.github.com/articles/set-up-git#platform-windows.
The second issue is that the git clone command you are using won't work on a Windows machine as it supplies a path to a Linux home directory ~/.grunt-init/gruntfile.
From your comments I am guessing the %USERPROFILE%.grunt-init\gruntfile\ is the correct install directory for Windows and so changing your working directory to that and using the command git clone git#github.com:gruntjs/grunt-init-gruntfile.git should install it.
You may also consider working using Cygwin which allows you to use a linux working environment on a windows machine.
Happy node hacking.

Resources