Rakesh Jain Profile picture
Mar 16 18 tweets 6 min read
On Demand Thread! @VISHWANTH1310

Differences between yum and rpm!

A Detailed thread 👇 PS: https://diffzi.com/wp-content/uploads/2018/11/Yum-vs.-RP
1/ A major difference between #yum and #rpm is that yum is a package manager, while rpm is a package format. Yum uses rpm as its underlying packaging format, but adds additional functionality to manage package dependencies.
2/ Another key difference between #yum and #rpm is that yum is capable of automatically resolving dependencies between packages. For example, if you install a package with yum that requires another package, yum will automatically install that package for you.
3/ #yum also provides additional functionality like package groups, which allow you to install multiple packages at once. You can specify a group of packages to install, and yum will automatically install all of the packages in the group.
4/ In contrast, #rpm only manages individual packages. If you want to install multiple packages at once with rpm, you need to specify each package individually.
5/ Additionally, #yum can download and install packages from remote repositories, making it easy to manage software on multiple systems. Rpm does not have this functionality built-in, and requires you to manually download and install packages.
6/ However, #rpm can be useful for installing packages in situations where you don't have access to a remote repository, or if you want to install a package from a local file. Rpm can be used to install packages directly from a .rpm file on your system.
7/ Finally, #yum is often used on Red Hat-based Linux distributions like Fedora and CentOS, while #rpm is used on a variety of Linux distributions. However, many Linux distributions have now adopted yum as their default package manager.
While #yum & #rpm share some similarities, dey also hv imp diff's. Yum is a pkg mgr dat uses rpm as underlying format & provides add'l functionality like automatic dependency resolution & remote pkg mgmt. Rpm is a standalone pkg format dat canbe useful wen yum isn't available
Here are some practical examples of the differences between rpm and yum: 👇
[1] Package Installation:

Package Installation: When using rpm, you need to manually download the package file, navigate to the directory where the package file is located, and then use the rpm command to install it.
For example:
sudo rpm -ivh package-name.rpm
[1.1] With yum, you can simply use the command:

sudo yum install package-name

Yum will automatically download and install the package, as well as any dependencies that the package needs.
[2] Group Installations: Yum provides the ability to install groups of pkgs.

For example, u can use yum to install the "Development Tools" group, which includes a set of commonly used development tools & libraries:

sudo yum groupinstall "Development Tools"
[2.1] With rpm, you would need to manually download and install each package in the group individually.
[3] Package Removal:

Wen using rpm to remove a pkg, u need to manually specify the pkg name & version.

For eg:
sudo rpm -e pkg-name-version

With yum, u can simply use the cmd:
sudo yum remove pkg-name

Yum will automatically remove d pkg & dependencies dat r no longer needed
[4] Package Verification:

Yum provides the ability to verify d integrity of installed pkgs. Dis can be useful for ensuring dat pkgs hvn't been modified/corrupted.

You can use yum to verify d installed pkgs:

sudo yum verify

Wid rpm, each pkg needs to be verified individually.
Overall, yum provides a more comprehensive package management experience than rpm, with additional features and functionality that can save time and simplify the management of packages and dependencies.
Retweet the thread if you find it useful. Thanks!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Rakesh Jain

Rakesh Jain Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @devops_tech

Mar 10
What is JUMP or BASTION host!

A short thread 👇 PS: https://i.ytimg.com/vi/...
Definition -

A jump host or bastion host is a secure gateway or intermediate server that is used to access a private network from an external network or the internet.
Primary Function -

The primary function of a jump or bastion host is to provide a secure access point for authorized users to connect to a private network or a set of servers, without exposing the private network or servers directly to the internet.
Read 18 tweets
Mar 9
How to make rsync faster?
There are several ways to make rsync faster when transferring files or directories:
[1] Use Compression:

Using -z option enables compression during transfer, which can significantly reduce d amount of data dat needs to be transferred over the nw. However, dis may increase the CPU usage on d src & dest machines, so it's imp to weigh d benefits against the costs.
Read 20 tweets
Mar 8
Step-by-Step GitHub process!

A Mega Thread 👇
Here are the step-by-step instructions for creating a local repository on your system using Git and GitHub -

[1] Open your terminal or command prompt.
[2] Create a new folder/directory for your local repository using the mkdir command.

For example, mkdir my-local-repo.
Read 33 tweets
Mar 7
Some tips and tricks for using the nano editor:

A short Thread 👇
[1] Navigation:

* Use the arrow keys to move the cursor

* Use the Ctrl key + the arrow keys to move one word at a time

* Use Ctrl + a to move to the beginning of the line

* Use Ctrl + e to move to the end of the line

* Use Ctrl + _ (underscore) to jump to a specific line no
[2] Editing:

* Use Ctrl + k to cut (delete) the current line.

* Use Ctrl + u to paste the cut line.

* Use Ctrl + w to search for a word or phrase in the file.

* Use Ctrl + r to read in a file and insert its contents at the cursor.

* Use Alt + u to undo the last action.
Read 11 tweets
Mar 6
Beginner to Advanced Linux administration tips and tricks!

A Mega Thread 👇
[1] Use SSH keys for authentication:

Rather than using passwords, use SSH keys for authentication. This adds an extra layer of security and makes it more difficult for unauthorized users to gain access to your system.
[2] Use sudo for privilege escalation:

Rather than logging in as the root user, use the sudo command to escalate your privileges when needed. This helps minimize the risk of accidental damage to your system. PS: https://aoostudio.com/wp-content/uploads/sudo-%E0%B8%84%
Read 26 tweets
Mar 5
Examples of Ansible ad-hoc commands 👇

A Thread 👇
[1] Ping all servers in a group:

ansible all -m ping
[2] Get the uptime of all servers in a group:

ansible all -m command -a "uptime"
Read 23 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(