RPM or Red Hat Package Manager is the default package management solution for Linux distributions based on Red Hat Linux. RPM या Red Hat संकुल प्रबंधक डिफ़ॉल्ट Linux Red Hat Linux के आधार पर वितरण के लिए पैकेज प्रबंधन समाधान है. It's a pretty useful way to easily install, upgrade, and un-install packages on Linux machines. यह एक बहुत ही उपयोगी तरीका है आसानी से स्थापित करने, उन्नत है, और गैर-Linux मशीन पर संकुल स्थापित करें. I remember the days when every Linux package had to be compiled. मैं हर दिन जब Linux संकुल था याद करने की संकलित है. Let's see how to perform some basic tasks with RPM. देखते हैं कैसे RPM के साथ कुछ बुनियादी कार्य है.
List All Packages सूची में सभी संकुल
Before installing a new package or upgrading and old one you sometimes want to check to make sure that it isn't already installed. इससे पहले एक नया पैकेज या उन्नयन और पुराने एक तुम कभी कभी करने के लिए यकीन है कि यह पहले से स्थापित नहीं है स्थापित करने की जांच करना चाहते. Here's how you can get a list of all installed RPM packages: यहाँ आप सभी स्थापित RPM संकुल की सूची को कैसे प्राप्त कर सकते हैं:
# rpm -qa # Rpm-क्यूए
gawk-3.1.3-10.1 मूर्ख-3.1.3-10,1
pax-3.0-9 शांति-3,0-9
krbafs-1.2.2-6 krbafs-1.2.2-6
esound-0.2.35-2 esound-0.2.35-2
perl-XML-Encoding-1.01-26 एन्कोडिंग को perl-XML-1.01-26
perl-Digest-SHA1-2.07-5 SHA1 perl-डाइजेस्ट-2.07-5
… ...
Now a list of this kind can be pretty confusing. अब इस तरह की एक सूची काफी भ्रमित किया जा सकता है. What I like to do is use this command along with grep . मुझे क्या करना पसंद है grep के साथ इस कमांड का उपयोग करें. I filter the search with the package I'm looking for. मैं पैकेज के लिए मैं देख रहा हूँ के साथ खोज फ़िल्टर. So, if I'm trying to check if a certain PHP package is installed I would run the following search: तो, अगर मैं अगर एक निश्चित PHP संकुल अधिष्ठापित है, मैं निम्नलिखित खोज चलाना होगा जाँच कोशिश कर रहा हूँ:
# rpm -qa | grep php # Rpm-क्यूए | grep php?
php-pdo-5.2.0-1.rhel4.ct php-pdo-5.2.0-1.rhel4.ct
php-mbstring-5.2.0-1.rhel4.ct php-mbstring-5.2.0-1.rhel4.ct
php-mysql-5.2.0-1.rhel4.ct php-mysql-5.2.0-1.rhel4.ct
php-imap-5.2.0-5 php-IMAP-5.2.0-5
php-5.2.0-1.rhel4.ct php-5.2.0-1.rhel4.ct
php-cli-5.2.0-1.rhel4.ct php-cli-5.2.0-1.rhel4.ct
php-gd-5.2.0-1.rhel4.ct php-GD-5.2.0-1.rhel4.ct
I can see what's already installed and then decide if I need to install, upgrade, or remove anything. मैं क्या पहले से स्थापित है और फिर देख सकते हैं यदि मैं स्थापित करने, बढ़ाने, या कुछ भी हटाने की आवश्यकता का फैसला.
Install and Upgrade Packages स्थापित करें और अद्यतन संकुल
There are a couple of websites I use to get my RPM packages – वहाँ वेबसाइटों मैं अपने RPM संकुल को मिल उपयोग के एक जोड़े हैं -- rpm.pbone.net rpm.pbone.net and और RPM Find RPM खोजें . . After downloading the .rpm file here's how you can install a package: . Rpm फाइल यहाँ डाउनलोड करने के बाद आपको एक पैकेज कैसे स्थापित कर सकते हैं:
# rpm -ivh package-name.rpm # Rpm-ivh पैकेज name.rpm
To upgrade a package: एक संकुल उन्नयन:
# rpm -Uvh package-name.rpm # Rpm-Uvh पैकेज name.rpm
You will quite often get an error from RPM saying it needs some other packages installed to install or upgrade the package you are trying to install. तुम अक्सर RPM से एक त्रुटि कह इसे किसी और को स्थापित या पैकेज आप को स्थापित करने की कोशिश कर रहे हैं उन्नयन अधिष्ठापित संकुल की जरूरत होगी. This is commonly referred to as “dependancy hell”. यह सामान्यतः "dependancy नरक 'के रूप में जाना जाता है. You just have to go back to the website from where you downloaded the package and look for the packages it depends on, and install them first. तुम बस तुम कहाँ संकुल डाउनलोड और संकुल इस पर निर्भर करता है के लिए देखो से वेबसाइट पर वापस जाना है, और उन्हें स्थापित करने के पहले.
Remove Packages निकालें संकुल
Removing packages with RPM is just as simple as installing or upgrading them. RPM के साथ संकुल को हटाना ही स्थापित या उनके उन्नयन के रूप में के रूप में सरल है. You need to make sure you get the complete name of the package you are trying to remove. तुम को यकीन है कि तुम पैकेज आपको हटाने की कोशिश कर रहे हैं, पूरा नाम करने की जरूरत है. Use the command to list the packages as shown above to get the full name of the package. कमांड का प्रयोग संकुल के रूप में ऊपर दिखाए के लिए पैकेज का पूरा नाम सूची में. Then run the following command: तो निम्न कमांड चलायें:
# rpm -e package-name.rpm # Rpm-ई पैकेज name.rpm
Beware of getting into dependancy issues here as well. Dependancy मुद्दों में यहाँ हो रही के रूप में अच्छी तरह से सावधान रहो.























One Response एक उत्तर
Stay in touch with the conversation, subscribe to the बातचीत के साथ संपर्क में रहो, की सदस्यता लें RSS feed for comments on this post आरएसएस के इस पोस्ट पर टिप्पणियों के लिए फ़ीड . .
Continuing the Discussion चर्चा सतत