Welcome, Guest. Please login or register.
April 24, 2014, 01:05:00 AM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  General
| |-+  Tips and tricks
| | |-+  Basic commands for PiSi
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Basic commands for PiSi  (Read 10714 times)
murat
Pardus Developer
Pardus fellow craft
*****
Gender: Male
Posts: 101



View Profile
« on: July 25, 2006, 15:52:24 PM »

Only with Pardus comes a new package system called PiSi and of course it's command line options are different. You can find some of most usefull commands with their descriptions below:

To install a package from repository
Code:
sudo pisi it package_name

To install a package from a directory
Code:
sudo pisi it /where/ever/it/is/package_name.pisi

To remove a package
Code:
sudo pisi rm package_name

To make a pisi from source files(pspec.xml and actions.py)
Code:
sudo pisi build pspec.xml

To add a repository
Code:
sudo pisi ar http:/link/pisi-index.xml.bz2

To update a repository
Code:
sudo pisi ur repo_name

To remove a repository
Code:
sudo pisi rr repo_name

To list repositories
Code:
pisi lr

To get an information on a specific package
Code:
pisi info package_name
Logged
Jan Gnodde
Global Moderator
Pardus Guru
*****
Gender: Male
Posts: 397


View Profile WWW
« Reply #1 on: April 20, 2007, 08:42:58 AM »

And you can find (almost) all of the pisi commands with
Code:
pisi help
or, if you want to know more about some specific <command>:
Code:
pisi help <command>

Jan.
Logged
Caesar Tjalbo
Pardus fellow craft
**
Posts: 33


View Profile
« Reply #2 on: November 23, 2007, 12:30:31 PM »

I'm sometimes looking for a package without knowing the right name. Wildcards don't help, say I'm looking for Yakuake: "pisi info yak*"  is not going to provide the package name unfortunately. My workaround is to search all available package and list the ones I'm after with grep. In the Yakuake example above:

Code:
pisi la | grep -i yak

gives

Quote
yakuake         - Yet Another Kuake aka YaKuake (Quake like konsole)
tilda           - A drop down Terminal like Yakuake
yakuake-split   - Drop down terminal

This is a bit of a last resort: listing all available packages takes a while so it's slow. If you see the package you're after you can press <CTRL> C to abort the process of course. The -i option used with grep means "ignore case" and probably isn't necessary; omitting it in the example would have left "tilda" out.
Logged
murat
Pardus Developer
Pardus fellow craft
*****
Gender: Male
Posts: 101



View Profile
« Reply #3 on: November 23, 2007, 12:41:35 PM »

"pisi sr" works just how it should be. It looks for the package names and summary/description of the packages and if it finds any, it lists them:

Code:
murat@infidel Desktop $ pisi sr yak
libgpg-error - GnuPG yazılımı tarafından kullanılan hata yakalama fonksiyonlarını içerir
fbgrab - Framebuffer ekran görüntüsü yakalama yardımcı programı
recode - Karakter kümesi dönüşümü yapan bir araç
freedroidrpg - Commodore 64 tabanlı klasik Paradroid oyununun bir benzeri
mjpegtools - MJPEG video dosyaları için kullanılabilecek araçlar
dvgrab - GNU/Linux için djital video (DV) yakalayıcı
urwid - Konsol kullanıcı arabirimleri için Python kütüphanesi
apollon - KDE tabanlı giFT grafik arayüzü
freecol - Colonization Benzeri Strateji Oyunu
libpcap - Kullanıcı seviyesinde ağ paketi yakalamak için bir sistem bağımsız kütüphane
yakuake - Bir konsol emülasyonu
tvtime - Görüntü yakalama kartları ile kullanılan yüksek kaliteli bir televizyon uygulaması
xvidcap - Hareketli ekran görüntüsü yakalama aracı
bzip2 - Yüksek kaliteli bir veri sıkıştırma uygulaması
dolphin - Kullanışlılığı hedef almış bir KDE dosya yöneticisi
yakuake-split - Bir konsol emülasyonu
alloyon - Kde pencere dekorasyonu
tilda - Yakuake benzeri yukarıdan aşağı doğru kayan Terminal

Is it possible that you are using older version of Pardus which causes using older version of PiSi?
Logged
Caesar Tjalbo
Pardus fellow craft
**
Posts: 33


View Profile
« Reply #4 on: November 24, 2007, 01:43:10 AM »

"pisi sr"
...
Is it possible that you are using older version of Pardus which causes using older version of PiSi?

No, my fault, I didn't use the sr option because I didn't know about it  Shocked

Quote
pisi sr yak
3 packages found
[repo]           tilda - A drop down Terminal like Yakuake
tilda is not installed
[inst]         yakuake - Yet Another Kuake aka YaKuake (Quake like konsole)
[repo]         yakuake - Yet Another Kuake aka YaKuake (Quake like konsole)
[repo]   yakuake-split - Drop down terminal
yakuake-split is not installed

It seems 'yak' appears more often in Turkish words than in English  Smiley
Logged
Lagg
Newbie
*
Posts: 2


View Profile
« Reply #5 on: May 10, 2008, 07:03:46 AM »

I spent the evening cooking up this little script. I'm glad that there's already a thread for PiSi tricks, becuase a full thread for my script is completely overblown.

This came about when I uninstalled VLC, but there were about 8 other packages still lingering on the system that had been downloaded as dependencies. PiSi has no way of finding and removing uneeded/unused packages that were only installed to satify a dependency. I really liked that feature in Apt , so I wrote a ruby script to run through all of the installed packages, and see if the file you just uninstalled was a reverse dependency.

Code:
ruby script.rb
( just copy the text to a blank text document and name it *.rb)

It will prompt for a file name. I used "vlc" since that was the package I had just uninstalled, but you should use whatever you just uinstalled.

As you can see there's no error handling, but it's a simple script, so a crash shouldn't wreck your record uptime sesson Tongue. Also, it's setup to just search for reverse dependencies of REMOVED packages, so don't try to use this as a general lookup tool.

A final word, this script goes through a bunch of text, and peforms many, many PiSi commands. It takes about 3-5 minutes for it to search thought all of the information and return the results. Good script to run during a commerical/bathroom/taco break.


Code:
#![/bin/ruby]

puts "Target package:"
target = gets.chomp!
puts "Okay, so lets look for files that were installed with "+target+"  \n but are no longer needed...\n This will take awhile"
installed = `pisi li`
found = Array.new
installed.each do |x|
package= x.slice!(0..x.index(' - ')).strip!
if `pisi info #{package} | grep #{target}`.length > 0
depend = `pisi info #{package} | grep 'Reverse Dependencies' `
depend = depend.split("\n")
if depend[0].length < 24
puts package
end
end
end

puts "We're done here, you can use pisi remove <package> to remove the files"
Logged
Llama
Pardus fellow craft
**
Gender: Male
Posts: 111



View Profile
« Reply #6 on: March 22, 2009, 09:52:54 AM »

What is apt-get upgrade in PiSi-ese Smiley ?
Logged
bubbel
Guest
« Reply #7 on: March 22, 2009, 10:19:46 AM »

What is apt-get upgrade in PiSi-ese

pisi up

With pisi help you find the most commands.

Greetings
bubbel
« Last Edit: March 22, 2009, 10:23:50 AM by bubbel » Logged
bubbel
Guest
« Reply #8 on: March 22, 2009, 10:43:03 AM »

Hello,

and have a look in the Wiki   Wink

Greetings
bubbel
Logged
Llama
Pardus fellow craft
**
Gender: Male
Posts: 111



View Profile
« Reply #9 on: April 23, 2009, 15:58:30 PM »

If a package is present in more than one repo, how am I supposed to specify the repository?
Logged
bubbel
Guest
« Reply #10 on: April 23, 2009, 18:34:36 PM »

If a package is present in more than one repo

Hello,

a package can`t be present in more than one repo. Wink

Greetings
bubbel
Logged
PhiX
Pardus Guru
****
Posts: 642



View Profile WWW
« Reply #11 on: April 23, 2009, 19:44:46 PM »

If a package is present in more than one repo, how am I supposed to specify the repository?

According to :
Code:
pisi help it
it should be :
Code:
pisi -r <name of the repository> it <name of the package>
.


PS : what I have done to get rid of the redundancy list of packages is to replace pardus-2008 repository with pardus-test-2008.
« Last Edit: April 23, 2009, 19:47:44 PM by PhiX » Logged

Team Pardus-fr - French Pardus tools translator
Llama
Pardus fellow craft
**
Gender: Male
Posts: 111



View Profile
« Reply #12 on: April 23, 2009, 19:53:38 PM »

PS : what I have done to get rid of the redundancy list of packages is to replace pardus-2008 repository with pardus-test-2008.
Is it a legitimate replacement? It shouldn't be, unless the test repo is designed with this option in mind. Could you post your pisi lr output?
Logged
PhiX
Pardus Guru
****
Posts: 642



View Profile WWW
« Reply #13 on: April 23, 2009, 20:00:52 PM »

I am not sure it is legitimate, but I didn't had any problem so far with this setting.

Code:
pisi lr
contrib-2008
   http://paketler.pardus.org.tr/contrib-2008/pisi-index.xml.bz2
pardus-2008-test
   http://paketler.pardus.org.tr/pardus-2008-test/pisi-index.xml.bz2
Logged

Team Pardus-fr - French Pardus tools translator
Llama
Pardus fellow craft
**
Gender: Male
Posts: 111



View Profile
« Reply #14 on: April 24, 2009, 13:25:56 PM »

Yeah, funny. With pardus and test repositories in place I've got, according to the Package Manager, two vlc players of the same version and in the same pardus repo.

Probably your contrib+test philosophy is correct; test must be an exact superset of pardus-2008.2. Can't say that I understand the underlying logic, though.

By the way, PhiX, where did you get this less than obvious idea?
« Last Edit: April 24, 2009, 13:30:50 PM by Llama » Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!